Heterocyclic compounds as immunomodulators

ABSTRACT

Disclosed are compounds of Formula (I), methods of using the compounds as immunomodulators, and pharmaceutical compositions comprising such compounds. The compounds are useful in treating, preventing or ameliorating diseases or disorders such as cancer or infections.

FIELD OF THE INVENTION

The present application is concerned with pharmaceutically active compounds. The disclosure provides compounds as well as their compositions and methods of use. The compounds modulate PD-1/PD-L1 protein/protein interaction and are useful in the treatment of various diseases including infectious diseases and cancer.

BACKGROUND OF THE INVENTION

The immune system plays an important role in controlling and eradicating diseases such as cancer. However, cancer cells often develop strategies to evade or to suppress the immune system in order to favor their growth. One such mechanism is altering the expression of co-stimulatory and co-inhibitory molecules expressed on immune cells (Postow et al, J. Clinical Oncology 2015, 1-9). Blocking the signaling of an inhibitory immune checkpoint, such as PD-1, has proven to be a promising and effective treatment modality.

Programmed cell death-1 (PD-1), also known as CD279, is a cell surface receptor expressed on activated T cells, natural killer T cells, B cells, and macrophages (Greenwald et al, Annu. Rev. Immunol 2005, 23:515-548; Okazaki and Honjo, Trends Immunol 2006, (4): 195-201). It functions as an intrinsic negative feedback system to prevent the activation of T-cells, which in turn reduces autoimmunity and promotes self-tolerance. In addition, PD-1 is also known to play a critical role in the suppression of antigen-specific T cell response in diseases like cancer and viral infection (Sharpe et al, Nat Immunol 2007 8, 239-245; Postow et al, J. Clinical Oncol 2015, 1-9).

The structure of PD-1 consists of an extracellular immunoglobulin variable-like domain followed by a transmembrane region and an intracellular domain (Parry et al, Mol Cell Biol 2005, 9543-9553). The intracellular domain contains two phosphorylation sites located in an immunoreceptor tyrosine-based inhibitory motif and an immunoreceptor tyrosine-based switch motif, which suggests that PD-1 negatively regulates T cell receptor-mediated signals. PD-1 has two ligands, PD-L1 and PD-L2 (Parry et al, Mol Cell Biol 2005, 9543-9553; Latchman et al, Nat Immunol 2001, 2, 261-268), and they differ in their expression patterns. PD-L1 protein is upregulated on macrophages and dendritic cells in response to lipopolysaccharide and GM-CSF treatment, and on T cells and B cells upon T cell receptor and B cell receptor signaling. PD-L1 is also highly expressed on almost all tumor cells, and the expression is further increased after IFN-γ treatment (Iwai et al, PNAS2002, 99(19):12293-7; Blank et al, Cancer Res 2004, 64(3):1140-5). In fact, tumor PD-L1 expression status has been shown to be prognostic in multiple tumor types (Wang et al, Eur J Surg Oncol 2015; Huang et al, Oncol Rep 2015; Sabatier et al, Oncotarget 2015, 6(7): 5449-5464). PD-L2 expression, in contrast, is more restricted and is expressed mainly by dendritic cells (Nakae et al, J Immunol 2006, 177:566-73). Ligation of PD-1 with its ligands PD-L1 and PD-L2 on T cells delivers a signal that inhibits IL-2 and IFN-γ production, as well as cell proliferation induced upon T cell receptor activation (Carter et al, Eur J Immunol 2002, 32(3):634-43; Freeman et al, J Exp Med 2000, 192(7): 1027-34). The mechanism involves recruitment of SHP-2 or SHP-1 phosphatases to inhibit T cell receptor signaling such as Syk and Lck phosphorylation (Sharpe et al, Nat Immunol 2007, 8, 239-245). Activation of the PD-1 signaling axis also attenuates PKC-θ activation loop phosphorylation, which is necessary for the activation of NF-κB and API pathways, and for cytokine production such as IL-2, IFN-γ and TNF (Sharpe et al, Nat Immunol 2007, 8, 239-245; Carter et al, Eur J Immunol 2002, 32(3):634-43; Freeman et al, J Exp Med 2000, 192(7):1027-34).

Several lines of evidence from preclinical animal studies indicate that PD-1 and its ligands negatively regulate immune responses. PD-1-deficient mice have been shown to develop lupus-like glomerulonephritis and dilated cardiomyopathy (Nishimura et al, Immunity 1999, 11:141-151; Nishimura et al, Science 2001, 291:319-322). Using an LCMV model of chronic infection, it has been shown that PD-1/PD-L1 interaction inhibits activation, expansion and acquisition of effector functions of virus-specific CD8 T cells (Barber et al, Nature 2006, 439, 682-7). Together, these data support the development of a therapeutic approach to block the PD-1-mediated inhibitory signaling cascade in order to augment or “rescue” T cell response. Accordingly, there is a need for new compounds that block PD-1/PD-L1 protein/protein interaction.

SUMMARY

The present disclosure provides, inter alia, a compound of Formula (I):

or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein constituent variables are defined herein.

The present disclosure further provides a pharmaceutical composition comprising a compound of the disclosure, or a pharmaceutically acceptable salt or a stereoisomer thereof, and at least one pharmaceutically acceptable carrier or excipient.

The present disclosure further provides methods of modulating or inhibiting PD-1/PD-L1 protein/protein interaction, which comprises administering to an individual a compound of the disclosure, or a pharmaceutically acceptable salt or a stereoisomer thereof.

The present disclosure further provides methods of treating a disease or disorder in a patient comprising administering to the patient a therapeutically effective amount of a compound of the disclosure, or a pharmaceutically acceptable salt or a stereoisomer thereof.

DETAILED DESCRIPTION I. Compounds

The present disclosure provides a compound of Formula (I):

or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein:

(i) G¹ is NR⁶ and G² is CR⁷R⁷; or

(ii) G¹ is CR⁶R⁶ and G² is NR⁷;

X¹ is N or CR¹;

X² is N or CR²;

X³ is N or CR³;

Z is O, S, N, NR⁴ or CR⁴;

Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N;

Cy is C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents;

R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₁₀ cycloalkyl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, C₆₋₁₀ aryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OR¹⁰, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, NH₂, —NHR¹⁰, —NR¹⁰R¹⁰, NHOR¹⁰, C(O)R¹⁰, C(O)NR¹⁰R¹⁰, C(O)OR¹⁰, OC(O)R¹⁰, OC(O)NR¹⁰R¹⁰, NR¹⁰C(O)R¹⁰, NR¹⁰C(O)OR¹⁰, NR¹⁰C(O)NR¹⁰R¹⁰, C(═NR¹⁰)R¹⁰, C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰S(O)R¹⁰, NR¹⁰S(O)₂R¹⁰, NR¹⁰S(O)₂NR¹⁰R¹⁰, S(O)R¹⁰, S(O)NR¹⁰R¹⁰, S(O)₂R¹⁰, and S(O)₂NR¹⁰R¹⁰, wherein each R¹⁰ is independently selected from H, C₁₋₄ alkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, C₁₋₄ alkoxy, C₃₋₁₀ cycloalkyl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, C₆₋₁₀ aryl, C₆₋₁₀ aryl-C₁₋₄ alkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₄ alkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, C₁₋₄ alkoxy, C₃₋₁₀ cycloalkyl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, C₆₋₁₀ aryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R¹, R², R³ and R¹⁰ are each optionally substituted with 1, 2 or 3 independently selected R^(d) substituents;

R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR^(a), SR^(a), NHOR^(a), C(O)R^(a), C(O)NR^(a)R^(a), C(O)OR^(a), OC(O)R^(a), OC(O)NR^(a)R^(a), NHR^(a), NR^(a)R^(a), NR^(a)C(O)R^(a), NR^(a)C(O)OR^(a), NR^(a)C(O)NR^(a)R^(a), C(═NR^(a))R^(a), C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NOH)NR^(a)R^(a), NR^(a)C(═NCN)NR^(a)R^(a), NR^(a)S(O)R^(a), NR^(a)S(O)₂R^(a), NR^(a)S(O)₂NR^(a)R^(a), S(O)R^(a), S(O)NR^(a)R^(a), S(O)₂R^(a), and S(O)₂NR^(a)R^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1, 2, 3, 4 or 5 R^(b) substituents;

or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents;

or two R⁵ substituents attached to the same carbon atom, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl ring or 4-, 5-, 6- or 7-membered heterocycloalkyl ring, wherein the C₃₋₆ cycloalkyl ring and 4-, 5-, 6- or 7-membered heterocycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents;

R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR¹¹, SR¹¹, NH₂, NHR¹¹, NR¹¹R¹¹, NHOR¹¹, C(O)R¹¹, C(O)NR¹¹R¹¹, C(O)OR¹¹, OC(O)R¹¹, OC(O)NR¹¹R¹¹, NR¹¹C(O)R¹¹, NR¹¹C(O)OR¹¹, NR¹¹C(O)NR¹¹R¹¹, C(═NR¹¹)R¹¹, C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NOH)NR¹¹R¹¹, NR¹¹C(═NCN)NR¹¹R¹¹, NR¹¹S(O)R¹¹, NR¹¹S(O)₂R¹¹, NR¹¹S(O)₂NR¹¹R¹¹, S(O)R¹¹, S(O)NR¹¹R¹¹, S(O)₂R¹¹, or S(O)₂NR¹¹R¹¹, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents;

each R¹¹ is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R¹¹ are each optionally substituted with 1, 2 or 3 R^(b) substituents;

each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(a) are each optionally substituted with 1, 2 or 3 R^(d) substituents;

each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, OH, NH₂, NO₂, NHOR^(c), OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), OC(O)R^(c), OC(O)NR^(c)R^(c), C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NOH)NR^(c)R^(c), NR^(c)C(═NCN)NR^(c)R^(c), NHR^(c), NR^(c)R^(c), NR^(c)C(O)R^(c), NR^(c)C(O)OR^(c), NR^(c)C(O)NR^(c)R^(c), NR^(c)S(O)R^(c), NR^(c)S(O)₂R^(c), NR^(c)S(O)₂NR^(c)R^(c), S(O)R^(c), S(O)NR^(c)R^(c), S(O)₂R^(c) and S(O)₂NR^(c)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents;

each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(c) are each optionally substituted with 1, 2 or 3 R^(f) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(g), OR^(g), SR^(g), C(O)R^(g), C(O)NR^(g)R^(g), C(O)OR^(g), OC(O)R^(g), OC(O)NR^(g)R^(g), NHR^(g), NR^(g)R^(g), NR^(g)C(O)R^(g), NR^(g)C(O)NR^(g)R^(g), NR^(g)C(O)OR^(g), C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NOH)NR^(g)R^(g), NR^(g)C(═NCN)NR^(g)R^(g), S(O)R^(g), S(O)NR^(g)R^(g), S(O)₂R^(g), NR^(g)S(O)₂R^(g), NR^(g)S(O)₂NR^(g)R^(g), and S(O)₂NR^(g)R^(g); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(f) are each optionally substituted with 1, 2 or 3 R^(n) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, NHOR^(o), OR^(o), SR^(o), C(O)R^(o), C(O)NR^(o)R^(o), C(O)OR^(o), OC(O)R^(o), OC(O)NR^(o)R^(o), NHR^(o), NR^(o)R^(o), NR^(o)C(O)R^(o), NROC(O)NR^(o)R^(o), NR^(o)C(O)OR^(o), C(═NR^(o))NR^(o)R^(o), NR^(o)C(═NR)NR^(o)R^(o), S(O)R^(o), S(O)NR^(o)R^(o), S(O)₂R^(o), NR^(o)S(O)₂R^(o), NR^(o)S(O)₂NR^(o)R^(o), and S(O)₂NR^(o)R^(o), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, and 4-6 membered heterocycloalkyl- of R^(n) is optionally substituted with 1, 2 or 3 R^(q) substituents;

each R^(d) is independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NH₂, NHOR^(e), OR^(e), SR^(e), C(O)R^(e), C(O)NR^(e)R^(e), C(O)OR^(e), OC(O)R^(e), OC(O)NR^(e)R^(e), NHR^(e), NR^(e)R^(e), NR^(e)C(O)R^(e), NR^(e)C(O)NR^(e)R^(e), NR^(e)C(O)OR^(e), C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NOH)NR^(e)R^(e), NR^(e)C(═NCN)NR^(e)R^(e), S(O)R^(e), S(O)NR^(e)R^(e), S(O)₂R^(e), NR^(e)S(O)₂R^(e), NR^(e)S(O)₂NR^(e)R^(e), and S(O)₂NR^(e)R^(e), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(d) are each optionally substituted with 1-3 independently selected R^(f) substituents;

each R^(e) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(e) are each optionally substituted with 1, 2 or 3 independently selected R^(f) substituents;

each R^(g) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(g) are each optionally substituted with 1-3 R^(p) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(r), OR^(r), SR^(r), C(O)R^(r), C(O)NR^(r)R^(r), C(O)OR^(r), OC(O)R^(r), OC(O)NR^(r)R^(r), NHR^(r), NR^(r)R^(r), NR^(r)C(O)R^(r), NR^(r)C(O)NR^(r)R^(r), NR^(r)C(O)OR^(r), C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NOH)NR^(r)R^(r), NR^(r)C(═NCN)NR^(r)R^(r), S(O)R^(r), S(O)NR^(r)R^(r), S(O)₂R^(r), NR^(r)S(O)₂R^(r), NR^(r)S(O)₂NR^(r)R^(r) and S(O)₂NR^(r)R^(r), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(p) are each optionally substituted with 1, 2 or 3 R^(q) substituents;

or any two R^(a) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, 7-, 8-, 9- or 10-membered heterocycloalkyl group optionally substituted with 1, 2 or 3 R^(h) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl-, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, halo, CN, OR^(i), SR^(i), NHOR^(i), C(O)R^(i), C(O)NR^(i)R^(i), C(O)OR^(i), OC(O)R^(i), OC(O)NR^(i)R^(i), NHR^(i), NR^(i)R^(i), NR^(i)C(O)R^(i), NR^(i)C(O)NR^(i)R^(i), NR^(i)C(O)OR^(i), C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NOH)NR^(i)R^(i), NR^(i)C(═NCN)NR^(i)R^(i), S(O)R^(i), S(O)NR^(i)R^(i), S(O)₂R^(i), NR^(i)S(O)₂R^(i), NR^(i)S(O)₂NR^(i)R^(i), and S(O)₂NR^(i)R^(i), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(h) are each optionally substituted by 1, 2, or 3 R^(j) substituents independently selected from C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 5- or 6-membered heteroaryl, 4-6 membered heterocycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, C₁₋₄ haloalkyl, C₁₋₄haloalkoxy, CN, NHOR^(k), OR^(k), SR^(k), C(O)R^(k), C(O)NR^(k)R^(k), C(O)OR^(k), OC(O)R^(k), OC(O)NR^(k)R^(k), NHR^(k), NR^(k)R^(k), NR^(k)C(O)R^(k), NR^(k)C(O)NR^(k)R^(k), NR^(k)C(O)OR^(k), C(═NR^(k))NR^(k)R^(k), NR^(k)C(═NR^(k))NR^(k)R^(k), S(O)R^(k), S(O)NR^(k)R^(k), S(O)₂R^(k), NR^(k)S(O)₂R^(k), NR^(k)S(O)₂NR^(k)R^(k), and S(O)₂NR^(k)R^(k), wherein the C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 5- or 6-membered heteroaryl, 4-6 membered heterocycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, C₁₋₄ haloalkyl, and C₁₋₄haloalkoxy of R^(j) are each optionally substituted with 1, 2 or 3 R^(q) substituents;

or two R^(h) groups attached to the same carbon atom of the 4- to 10-membered heterocycloalkyl, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl or 4- to 6-membered heterocycloalkyl having 1-2 heteroatoms as ring members selected from O, N or S;

each R^(i) or R^(k) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-(5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(i) or R^(k) are each optionally substituted with 1-3 independently selected R^(p) substituents;

or any two R^(c) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(e) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(e) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(i) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(k) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(o) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(r) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

each R^(o) or R^(r) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein the C₁₋₄ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl of R^(i), R^(k), R^(o) or R^(r) are each optionally substituted with 1, 2 or 3 R^(q) substituents;

each R^(q) is independently selected from OH, CN, —COOH, NH₂, halo, C₁₋₆ haloalkyl, C₁₋₆ alkyl, C₁₋₆ alkoxy, C₁₋₆ haloalkoxy, C₁₋₆ alkylthio, phenyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, C₃₋₆ cycloalkyl, NHR¹² and NR¹²R¹², wherein the C₁₋₆ alkyl, phenyl, C₃₋₆ cycloalkyl, 4-6 membered heterocycloalkyl, and 5-6 membered heteroaryl of R^(q) are each optionally substituted with halo, OH, CN, —COOH, NH₂, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, phenyl, C₃₋₁₀ cycloalkyl, 5-6 membered heteroaryl and 4-6 membered heterocycloalkyl and each R¹² is independently C₁₋₆ alkyl;

is a single bond or a double bond to maintain ring A being aromatic; and

the subscript n is an integer of 1, 2, 3 or 4.

In some embodiments, provided herein is a compound of Formula (I), or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein:

(i) G¹ is NR⁶ and G² is CR⁷R⁷; or

(ii) G¹ is CR⁶R⁶ and G² is NR⁷;

X¹ is N or CR¹;

X² is N or CR²;

X³ is N or CR³;

Z is O, S, N, NR⁴ or CR⁴;

Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N;

Cy is C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents;

R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₁₀ cycloalkyl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, C₆₋₁₀ aryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OR¹⁰, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, NH₂, —NHR¹⁰, —NR¹⁰R¹⁰, NHOR¹⁰, C(O)R¹⁰, C(O)NR¹⁰R¹⁰, C(O)OR¹⁰, OC(O)R¹⁰, OC(O)NR¹⁰R¹⁰, NR¹⁰C(O)R¹⁰, NR¹⁰C(O)OR¹⁰, NR¹⁰C(O)NR¹⁰R¹⁰, C(═NR¹⁰)R¹⁰, C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰S(O)R¹⁰, NR¹⁰S(O)₂R¹⁰, NR¹⁰S(O)₂NR¹⁰R¹⁰, S(O)R¹⁰, S(O)NR¹⁰R¹⁰, S(O)₂R¹⁰, and S(O)₂NR¹⁰R¹⁰, wherein each R¹⁰ is independently selected from H, C₁₋₄ alkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, C₁₋₄ alkoxy, C₃₋₁₀ cycloalkyl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, C₆₋₁₀ aryl, C₆₋₁₀ aryl-C₁₋₄ alkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₄ alkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, C₁₋₄ alkoxy, C₃₋₁₀ cycloalkyl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, C₆₋₁₀ aryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R¹, R², R³ and R¹⁰ are each optionally substituted with 1, 2 or 3 independently selected R^(d) substituents;

R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR^(a), SR^(a), NHOR^(a), C(O)R^(a), C(O)NR^(a)R^(a), C(O)OR^(a), OC(O)R^(a), OC(O)NR^(a)R^(a), NHR^(a), NR^(a)R^(a), NR^(a)C(O)R^(a), NR^(a)C(O)OR^(a), NR^(a)C(O)NR^(a)R^(a), C(═NR^(a))R^(a), C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NOH)NR^(a)R^(a), NR^(a)C(═NCN)NR^(a)R^(a), NR^(a)S(O)R^(a), NR^(a)S(O)₂R^(a), NR^(a)S(O)₂NR^(a)R^(a), S(O)R^(a), S(O)NR^(a)R^(a), S(O)₂R^(a), and S(O)₂NR^(a)R^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1, 2, 3, 4 or 5 R^(b) substituents;

or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents;

or two R⁵ substituents attached to the same carbon atom, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl ring or 4-, 5-, 6- or 7-membered heterocycloalkyl ring, wherein the C₃₋₆ cycloalkyl ring and 4-, 5-, 6- or 7-membered heterocycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents;

R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR¹¹, SR¹¹, NH₂, NHR¹¹, NR¹¹R¹¹, NHOR¹¹, C(O)R¹¹, C(O)NR¹¹R¹¹, C(O)OR¹¹, OC(O)R¹¹, OC(O)NR¹¹R¹¹, NR¹¹C(O)R¹¹, NR¹¹C(O)OR¹¹, NR¹¹C(O)NR¹¹R¹¹, C(═NR¹¹)R¹¹, C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NOH)NR¹¹R¹¹, NR¹¹C(═NCN)NR¹¹R¹¹, NR¹¹S(O)R¹¹, NR¹¹S(O)₂R¹¹, NR¹¹S(O)₂NR¹¹R¹¹, S(O)R¹¹, S(O)NR¹¹R¹¹, S(O)₂R¹¹, or S(O)₂NR¹¹R¹¹, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents;

each R¹¹ is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R¹¹ are each optionally substituted with 1, 2 or 3 R^(b) substituents;

each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(a) are each optionally substituted with 1, 2 or 3 R^(d) substituents;

each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, OH, NH₂, NO₂, NHOR^(c), OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), OC(O)R^(c), OC(O)NR^(c)R^(c), C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NOH)NR^(c)R^(c), NR^(c)C(═NCN)NR^(c)R^(c), NHR^(c), NR^(c)R^(c), NR^(c)C(O)R^(c), NR^(c)C(O)OR^(c), NR^(c)C(O)NR^(c)R^(c), NR^(c)S(O)R^(c), NR^(c)S(O)₂R^(c), NR^(c)S(O)₂NR^(c)R^(c), S(O)R^(c), S(O)NR^(c)R^(c), S(O)₂R^(c) and S(O)₂NR^(c)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents;

each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(c) are each optionally substituted with 1, 2 or 3 R^(f) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(g), OR^(g), SR^(g), C(O)R^(g), C(O)NR^(g)R^(g), C(O)OR^(g), OC(O)R^(g), OC(O)NR^(g)R^(g), NHR^(g), NR^(g)R^(g), NR^(g)C(O)R^(g), NR^(g)C(O)NR^(g)R^(g), NR^(g)C(O)OR^(g), C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NOH)NR^(g)R^(g), NR^(g)C(═NCN)NR^(g)R^(g), S(O)R^(g), S(O)NR^(g)R^(g), S(O)₂R^(g), NR^(g)S(O)₂R^(g), NR^(g)S(O)₂NR^(g)R^(g), and S(O)₂NR^(g)R^(g); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆-10 aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(f) are each optionally substituted with 1, 2 or 3 R^(n) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, NHOR^(o), OR^(o), SR^(o), C(O)R^(o), C(O)NR^(o)R^(o), C(O)OR^(o), OC(O)R^(o), OC(O)NR^(o)R^(o), NHR^(o), NR^(o)R^(o), NR^(o)C(O)R^(o), NR^(o)C(O)NR^(o)R^(o), NR^(o)C(O)OR^(o), C(═NR)NR^(o)R^(o), NR^(o)C(═NR^(o))NR^(o)R^(o), S(O)R^(o), S(O)NR^(o)R^(o), S(O)₂R^(o), NR^(o)S(O)₂R^(o), NR^(o)S(O)₂NR^(o)R^(o), and S(O)₂NR^(o)R^(o), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, and 4-6 membered heterocycloalkyl- of R^(n) is optionally substituted with 1, 2 or 3 R^(q) substituents;

each R^(d) is independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NH₂, NHOR^(e), OR^(e), SR^(e), C(O)R^(e), C(O)NR^(e)R^(e), C(O)OR^(e), OC(O)R^(e), OC(O)NR^(e)R^(e), NHR^(e), NR^(e)R^(e), NR^(e)C(O)R^(e), NR^(e)C(O)NR^(e)R^(e), NR^(e)C(O)OR^(e), C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NOH)NR^(e)R^(e), NR^(e)C(═NCN)NR^(e)R^(e), S(O)R^(e), S(O)NR^(e)R^(e), S(O)₂R^(e), NR^(e)S(O)₂R^(e), NR^(e)S(O)₂NR^(e)R^(e), and S(O)₂NR^(e)R^(e), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(d) are each optionally substituted with 1-3 independently selected R^(f) substituents;

each R^(e) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(e) are each optionally substituted with 1, 2 or 3 independently selected R^(f) substituents;

each R^(g) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(g) are each optionally substituted with 1-3 R^(p) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃-10 cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(r), OR^(r), SR^(r), C(O)R^(r), C(O)NR^(r)R^(r), C(O)OR^(r), OC(O)R^(r), OC(O)NR^(r)R^(r), NHR^(r), NR^(r)R^(r), NR^(r)C(O)R^(r), NR^(r)C(O)NR^(r)R^(r), NR^(r)C(O)OR^(r), C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NOH)NR^(r)R^(r), NR^(r)C(═NCN)NR^(r)R^(r), S(O)R^(r), S(O)NR^(r)R^(r), S(O)₂R^(r), NR^(r)S(O)₂R^(r), NR^(r)S(O)₂NR^(r)R^(r) and S(O)₂NR^(r)R^(r), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃-10 cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(p) are each optionally substituted with 1, 2 or 3 R^(q) substituents;

or any two R^(a) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, 7-, 8-, 9- or 10-membered heterocycloalkyl group optionally substituted with 1, 2 or 3 R^(h) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl-, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, halo, CN, OR^(i), SR^(i), NHOR^(i), C(O)R^(i), C(O)NR^(i)R^(i), C(O)OR^(i), OC(O)R^(i), OC(O)NR^(i)R^(i), NHR^(i), NR^(i)R^(i), NR^(i)C(O)R^(i), NR^(i)C(O)NR^(i)R^(i), NR^(i)C(O)OR^(i), C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NOH)NR^(i)R^(i), NR^(i)C(═NCN)NR^(i)R^(i), S(O)R^(i), S(O)NR^(i)R^(i), S(O)₂R^(i), NR^(i)S(O)₂R^(i), NR^(i)S(O)₂NR^(i)R^(i), and S(O)₂NR^(i)R^(i), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(h) are each optionally substituted by 1, 2, or 3 R^(j) substituents independently selected from C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 5- or 6-membered heteroaryl, 4-6 membered heterocycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, C₁₋₄ haloalkyl, C₁₋₄haloalkoxy, CN, NHOR^(k), OR^(k), SR^(k), C(O)R^(k), C(O)NR^(k)R^(k), C(O)OR^(k), OC(O)R^(k), OC(O)NR^(k)R^(k), NHR^(k), NR^(k)R^(k), NR^(k)C(O)R^(k), NR^(k)C(O)NR^(k)R^(k), NR^(k)C(O)OR^(k), C(═NR^(k))NR^(k)R^(k), NR^(k)C(═NR^(k))NR^(k)R^(k), S(O)R^(k), S(O)NR^(k)R^(k), S(O)₂R^(k), NR^(k)S(O)₂R^(k), NR^(k)S(O)₂NR^(k)R^(k), and S(O)₂NR^(k)R^(k) wherein the C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 5- or 6-membered heteroaryl, 4-6 membered heterocycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, C₁₋₄ haloalkyl, and C₁₋₄haloalkoxy of R^(j) are each optionally substituted with 1, 2 or 3 R^(q) substituents;

or two R^(h) groups attached to the same carbon atom of the 4- to 10-membered heterocycloalkyl, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl or 4- to 6-membered heterocycloalkyl having 1-2 heteroatoms as ring members selected from O, N or S;

each R^(i) or R^(k) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-(5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(i) or R^(k) are each optionally substituted with 1-3 independently selected R^(p) substituents;

or any two R^(c) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(e) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(g) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(i) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(k) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(o) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(r) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

each R^(o) or R^(r) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein the C₁₋₄ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₂-4 alkenyl, and C₂₋₄ alkynyl of R^(o) or R^(r) are each optionally substituted with 1, 2 or 3 R^(q) substituents;

each R^(q) is independently selected from OH, CN, —COOH, NH₂, halo, C₁₋₆ haloalkyl, C₁₋₆ alkyl, C₁₋₆ alkoxy, C₁₋₆ haloalkoxy, C₁₋₆ alkylthio, phenyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, C₃₋₆ cycloalkyl, NHR¹² and NR¹²R¹², wherein the C₁₋₆ alkyl, phenyl, C₃₋₆ cycloalkyl, 4-6 membered heterocycloalkyl, and 5-6 membered heteroaryl of R^(q) are each optionally substituted with halo, OH, CN, —COOH, NH₂, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, phenyl, C₃₋₁₀ cycloalkyl, 5-6 membered heteroaryl and 4-6 membered heterocycloalkyl and each R¹² is independently C₁₋₆ alkyl;

is a single bond or a double bond to maintain ring A being aromatic; and

the subscript n is an integer of 1, 2, 3 or 4.

In some embodiments, provided herein is a compound of Formula (I), or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein:

(i) G¹ is NR⁶ and G² is CR⁷R⁷; or

(ii) G¹ is CR⁶R⁶ and G² is NR⁷;

X¹ is N or CR¹;

X² is N or CR²;

X³ is N or CR³;

Z is O, S, N, NR⁴ or CR⁴;

Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N;

Cy is C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents;

R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₁₀ cycloalkyl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, C₆₋₁₀ aryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OR¹⁰, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, NH₂, —NHR¹⁰, —NR¹⁰R¹⁰, NHOR¹⁰, C(O)R¹⁰, C(O)NR¹⁰R¹⁰, C(O)OR¹⁰, OC(O)R¹⁰, OC(O)NR¹⁰R¹⁰, NR¹⁰C(O)R¹⁰, NR¹⁰C(O)OR¹⁰, NR¹⁰C(O)NR¹⁰R¹⁰, C(═NR¹⁰)R¹⁰, C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰S(O)R¹⁰, NR¹⁰S(O)₂R¹⁰, NR¹⁰S(O)₂NR¹⁰R¹⁰, S(O)R¹⁰, S(O)NR¹⁰R¹⁰, S(O)₂R¹⁰, and S(O)₂NR¹⁰R¹⁰, wherein each R¹⁰ is independently selected from H, C₁₋₄ alkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, C₁₋₄ alkoxy, C₃₋₁₀ cycloalkyl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, C₆₋₁₀ aryl, C₆₋₁₀ aryl-C₁₋₄ alkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₄ alkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, C₁₋₄ alkoxy, C₃₋₁₀ cycloalkyl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, C₆₋₁₀ aryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R¹, R², R³ and R¹⁰ are each optionally substituted with 1, 2 or 3 independently selected R^(d) substituents;

R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR^(a), SR^(a), NHOR^(a), C(O)R^(a), C(O)NR^(a)R^(a), C(O)OR^(a), OC(O)R^(a), OC(O)NR^(a)R^(a), NHR^(a), NR^(a)R^(a), NR^(a)C(O)R^(a), NR^(a)C(O)OR^(a), NR^(a)C(O)NR^(a)R^(a), C(═NR^(a))R^(a), C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NOH)NR^(a)R^(a), NR^(a)C(═NCN)NR^(a)R^(a), NR^(a)S(O)R^(a), NR^(a)S(O)₂R^(a), NR^(a)S(O)₂NR^(a)R^(a), S(O)R^(a), S(O)NR^(a)R^(a), S(O)₂R^(a), and S(O)₂NR^(a)R^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1, 2, 3, 4 or 5 R^(b) substituents;

or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents;

or two R⁵ substituents attached to the same carbon atom, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl ring or 4-, 5-, 6- or 7-membered heterocycloalkyl ring, wherein the C₃₋₆ cycloalkyl ring and 4-, 5-, 6- or 7-membered heterocycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents;

R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR¹¹, SR¹¹, NH₂, NHR¹¹, NR¹¹R¹¹, NHOR¹¹, C(O)R¹¹, C(O)NR¹¹R¹¹, C(O)OR¹¹, OC(O)R¹¹, OC(O)NR¹¹R¹¹, NR¹¹C(O)R¹¹, NR¹¹C(O)OR¹¹, NR¹¹C(O)NR¹¹R¹¹, C(═NR¹¹)R¹¹, C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NOH)NR¹¹R¹¹, NR¹¹C(═NCN)NR¹¹R¹¹, NR¹¹S(O)R¹¹, NR¹¹S(O)₂R¹¹, NR¹¹S(O)₂NR¹¹R¹¹, S(O)R¹¹, S(O)NR¹¹R¹¹, S(O)₂R¹¹, or S(O)₂NR¹¹R¹¹, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents;

each R¹¹ is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R¹¹ are each optionally substituted with 1, 2 or 3 R^(b) substituents;

each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(a) are each optionally substituted with 1, 2 or 3 R^(d) substituents;

each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, OH, NH₂, NO₂, NHOR^(c), OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), OC(O)R^(c), OC(O)NR^(c)R^(c), C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NOH)NR^(c)R^(c), NR^(c)C(═NCN)NR^(c)R^(c), NHR^(c), NR^(c)R^(c), NR^(c)C(O)R^(c), NR^(c)C(O)OR^(c), NR^(c)C(O)NR^(c)R^(c), NR^(c)S(O)R^(c), NR^(c)S(O)₂R^(c), NR^(c)S(O)₂NR^(c)R^(c), S(O)R^(c), S(O)NR^(c)R^(c), S(O)₂R^(c) and S(O)₂NR^(c)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ to aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents;

each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(c) are each optionally substituted with 1, 2 or 3 R^(f) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(g), OR^(g), SR^(g), C(O)R^(g), C(O)NR^(g)R^(g), C(O)OR^(g), OC(O)R^(g), OC(O)NR^(g)R^(g), NHR^(g), NR^(g)R^(g), NR^(g)C(O)R^(g), NR^(g)C(O)NR^(g)R^(g), NR^(g)C(O)OR^(g), C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NOH)NR^(g)R^(g), NR^(g)C(═NCN)NR^(g)R^(g), S(O)R^(g), S(O)NR^(g)R^(g), S(O)₂R^(g), NR^(g)S(O)₂R^(g), NR^(g)S(O)₂NR^(g)R^(g), and S(O)₂NR^(g)R^(g); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(f) are each optionally substituted with 1, 2 or 3 R^(n) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, NHOR^(o), OR^(o), SR^(o), C(O)R^(o), C(O)NR^(o)R^(o), C(O)OR^(o), OC(O)R^(o), OC(O)NR^(o)R^(o), NHR^(o), NR^(o)R^(o), NR^(o)C(O)R^(o), NR^(o)C(O)NR^(o)R^(o), NR^(o)C(O)OR^(o), C(═NR)NR^(o)R^(o), NR^(o)C(═NR)NR^(o)R^(o), S(O)R^(o), S(O)NR^(o)R^(o), S(O)₂R^(o), NR^(o)S(O)₂R^(o), NR^(o)S(O)₂NR^(o)R^(o), and S(O)₂NR^(o)R^(o), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, and 4-6 membered heterocycloalkyl- of R^(n) is optionally substituted with 1, 2 or 3 R^(q) substituents;

each R^(d) is independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NH₂, NHOR^(e), OR^(e), SR^(e), C(O)R^(e), C(O)NR^(e)R^(e), C(O)OR^(e), OC(O)R^(e), OC(O)NR^(e)R^(e), NHR^(e), NR^(e)R^(e), NR^(e)C(O)R^(e), NR^(e)C(O)NR^(e)R^(e), NR^(e)C(O)OR^(e), C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NOH)NR^(e)R^(e), NR^(e)C(═NCN)NR^(e)R^(e), S(O)R^(e), S(O)NR^(e)R^(e), S(O)₂R^(e), NR^(e)S(O)₂R^(e), NR^(e)S(O)₂NR^(e)R^(e), and S(O)₂NR^(e)R^(e), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(d) are each optionally substituted with 1-3 independently selected R^(f) substituents;

each R^(e) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(e) are each optionally substituted with 1, 2 or 3 independently selected R^(f) substituents;

each R^(g) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(g) are each optionally substituted with 1-3 R^(p) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃-10 cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(r), OR^(r), SR^(r), C(O)R^(r), C(O)NR^(r)R^(r), C(O)OR^(r), OC(O)R^(r), OC(O)NR^(r)R^(r), NHR^(r), NR^(r)R^(r), NR^(r)C(O)R^(r), NR^(r)C(O)NR^(r)R^(r), NR^(r)C(O)OR^(r), C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NOH)NR^(r)R^(r), NR^(r)C(═NCN)NR^(r)R^(r), S(O)R^(r), S(O)NR^(r)R^(r), S(O)₂R^(r), NR^(r)S(O)₂R^(r), NR^(r)S(O)₂NR^(r)R^(r) and S(O)₂NR^(r)R^(r), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃-10 cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(p) are each optionally substituted with 1, 2 or 3 R^(q) substituents;

or any two R^(a) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, 7-, 8-, 9- or 10-membered heterocycloalkyl group optionally substituted with 1, 2 or 3 R^(h) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl-, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, halo, CN, OR^(i), SR^(i), NHOR^(i), C(O)R^(i), C(O)NR^(i)R^(i), C(O)OR^(i), OC(O)R^(i), OC(O)NR^(i)R^(i), NHR^(i), NR^(i)R^(i), NR^(i)C(O)R^(i), NR^(i)C(O)NR^(i)R^(i), NR^(i)C(O)OR^(i), C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NOH)NR^(i)R^(i), NR^(i)C(═NCN)NR^(i)R^(i), S(O)R^(i), S(O)NR^(i)R^(i), S(O)₂R^(i), NR^(i)S(O)₂R^(i), NR^(i)S(O)₂NR^(i)R^(i), and S(O)₂NR^(i)R^(i), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(h) are each optionally substituted by 1, 2, or 3 R^(j) substituents independently selected from C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 5- or 6-membered heteroaryl, 4-6 membered heterocycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, C₁₋₄ haloalkyl, C₁₋₄haloalkoxy, CN, NHOR^(k), OR^(k), SR^(k), C(O)R^(k), C(O)NR^(k)R^(k), C(O)OR^(k), OC(O)R^(k), OC(O)NR^(k)R^(k), NHR^(k), NR^(k)R^(k), NR^(k)C(O)R^(k), NR^(k)C(O)NR^(k)R^(k), NR^(k)C(O)OR^(k), C(═NR^(k))NR^(k)R^(k), NR^(k)C(═NR^(k))NR^(k)R^(k), S(O)R^(k), S(O)NR^(k)R^(k), S(O)₂R^(k), NR^(k)S(O)₂R^(k), NR^(k)S(O)₂NR^(k)R^(k), and S(O)₂NR^(k)R^(k) wherein the C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 5- or 6-membered heteroaryl, 4-6 membered heterocycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, C₁₋₄ haloalkyl, and C₁₋₄haloalkoxy of R^(j) are each optionally substituted with 1, 2 or 3 R^(q) substituents;

or two R^(h) groups attached to the same carbon atom of the 4- to 10-membered heterocycloalkyl, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl or 4- to 6-membered heterocycloalkyl having 1-2 heteroatoms as ring members selected from O, N or S;

each R^(i) or R^(k) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-(5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(i) or R^(k) are each optionally substituted with 1-3 independently selected R^(p) substituents;

or any two R^(c) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(e) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(g) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(i) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents, or 1, 2, or 3 independently selected R^(q) substituents;

or any two R^(k) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents, or 1, 2, or 3 independently selected R^(q) substituents;

or any two R^(o) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents, or 1, 2, or 3 independently selected R^(q) substituents;

or any two R^(r) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents, or 1, 2, or 3 independently selected R^(q) substituents;

each R^(o) or R^(r) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein the C₁₋₄ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl of R^(o) or R^(r) are each optionally substituted with 1, 2 or 3 R^(q) substituents;

each R^(q) is independently selected from OH, CN, —COOH, NH₂, halo, C₁₋₆ haloalkyl, C₁₋₆ alkyl, C₁₋₆ alkoxy, C₁₋₆ haloalkoxy, C₁₋₆ alkylthio, phenyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, C₃₋₆ cycloalkyl, NHR¹² and NR¹²R¹², wherein the C₁₋₆ alkyl, phenyl, C₃₋₆ cycloalkyl, 4-6 membered heterocycloalkyl, and 5-6 membered heteroaryl of R^(q) are each optionally substituted with halo, OH, CN, —COOH, NH₂, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, phenyl, C₃₋₁₀ cycloalkyl, 5-6 membered heteroaryl and 4-6 membered heterocycloalkyl and each R¹² is independently C₁₋₆ alkyl;

is a single bond or a double bond to maintain ring A being aromatic; and

the subscript n is an integer of 1, 2, 3 or 4.

In some embodiments, provided herein is a compound of Formula (I), or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein:

(i) G¹ is NR⁶ and G² is CR⁷R⁷; or

(ii) G¹ is CR⁶R⁶ and G² is NR⁷;

X¹ is N or CR¹;

X² is N or CR²;

X³ is N or CR³;

Z is O, S, N, NR⁴ or CR⁴;

Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N;

Cy is C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents;

R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, NH₂, —NH—C₁₋₄ alkyl, —N(C₁₋₄ alkyl)₂, NHOR¹⁰, C(O)R¹⁰, C(O)NR¹⁰R¹⁰, C(O)OR¹⁰, OC(O)R¹⁰, OC(O)NR¹⁰R¹⁰, NR¹⁰C(O)R¹⁰, NR¹⁰C(O)OR¹⁰, NR¹⁰C(O)NR¹⁰R¹⁰, C(═NR¹⁰)R¹⁰, C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰S(O)R¹⁰, NR¹⁰S(O)₂R¹⁰, NR¹⁰S(O)₂NR¹⁰R¹⁰, S(O)R¹⁰, S(O)NR¹⁰R¹⁰, S(O)₂R¹⁰, and S(O)₂NR¹⁰R¹⁰, wherein each R¹⁰ is independently selected from H and C₁₋₄ alkyl optionally substituted with 1 or 2 groups independently selected from halo, OH, CN and C₁₋₄ alkoxy; and wherein the C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl and C₁₋₄ alkoxy of R¹, R² and R³ are each optionally substituted with 1 or 2 substituents independently selected from halo, OH, CN and C₁₋₄ alkoxy; R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR^(a), SR^(a), NHOR^(a), C(O)R^(a), C(O)NR^(a)R^(a), C(O)OR^(a), OC(O)R^(a), OC(O)NR^(a)R^(a), NHR^(a), NR^(a)R^(a), NR^(a)C(O)R^(a), NR^(a)C(O)OR^(a), NR^(a)C(O)NR^(a)R^(a), C(═NR^(a))R^(a), C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NOH)NR^(a)R^(a), NR^(a)C(═NCN)NR^(a)R^(a), NR^(a)S(O)R^(a), NR^(a)S(O)₂R^(a), NR^(a)S(O)₂NR^(a)R^(a), S(O)R^(a), S(O)NR^(a)R^(a), S(O)₂R^(a), and S(O)₂NR^(a)R^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1, 2, 3, 4 or 5 R^(b) substituents;

or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents;

or two R⁵ substituents attached to the same carbon atom, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl ring or 4-, 5-, 6- or 7-membered heterocycloalkyl ring, wherein the C₃₋₆ cycloalkyl ring and 4-, 5-, 6- or 7-membered heterocycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents;

R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR¹¹, SR¹¹, NH₂, NHR¹¹, NR¹¹R¹¹, NHOR¹¹, C(O)R¹¹, C(O)NR¹¹R¹¹, C(O)OR¹¹, OC(O)R¹¹, OC(O)NR¹¹R¹¹, NR¹¹C(O)R¹¹, NR¹¹C(O)OR¹¹, NR¹¹C(O)NR¹¹R¹¹, C(═NR¹¹)R¹¹, C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NOH)NR¹¹R¹¹, NR¹¹C(═NCN)NR¹¹R¹¹, NR¹¹S(O)R¹¹, NR¹¹S(O)₂R¹¹, NR¹¹S(O)₂NR¹¹R¹¹, S(O)R¹¹, S(O)NR¹¹R¹¹, S(O)₂R¹¹, or S(O)₂NR¹¹R¹¹, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents;

each R¹¹ is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R¹¹ are each optionally substituted with 1, 2 or 3 R^(b) substituents;

each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(a) are each optionally substituted with 1, 2 or 3 R^(d) substituents;

each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, OH, NH₂, NO₂, NHOR^(c), OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), OC(O)R^(c), OC(O)NR^(c)R^(c), C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NOH)NR^(c)R^(c), NR^(c)C(═NCN)NR^(c)R^(c), NHR^(c), NR^(c)R^(c), NR^(c)C(O)R^(c), NR^(c)C(O)OR^(c), NR^(c)C(O)NR^(c)R^(c), NR^(c)S(O)R^(c), NR^(c)S(O)₂R^(c), NR^(c)S(O)₂NR^(c)R^(c), S(O)R^(c), S(O)NR^(c)R^(c), S(O)₂R^(c) and S(O)₂NR^(c)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents;

each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(c) are each optionally substituted with 1, 2 or 3 R^(f) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(g), OR^(g), SR^(g), C(O)R^(g), C(O)NR^(g)R^(g), C(O)OR^(g), OC(O)R^(g), OC(O)NR^(g)R^(g), NHR^(g), NR^(g)R^(g), NR^(g)C(O)R^(g), NR^(g)C(O)NR^(g)R^(g), NR^(g)C(O)OR^(g), C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NOH)NR^(g)R^(g), NR^(g)C(═NCN)NR^(g)R^(g), S(O)R^(g), S(O)NR^(g)R^(g), S(O)₂R^(g), NR^(g)S(O)₂R^(g), NR^(g)S(O)₂NR^(g)R^(g), and S(O)₂NR^(g)R^(g); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(f) are each optionally substituted with 1, 2 or 3 R^(n) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, NHOR^(o), OR^(o), SR^(o), C(O)R^(o), C(O)NR^(o)R^(o), C(O)OR^(o), OC(O)R^(o), OC(O)NR^(o)R^(o), NHR^(o), NR^(o)R^(o), NR^(o)C(O)R^(o), NR^(o)C(O)NR^(o)R^(o), NR^(o)C(O)OR^(o), C(═NR^(o))NR^(o)R^(o), NR^(o)C(═NR^(o))NR^(o)R^(o), S(O)R^(o), S(O)NR^(o)R^(o), S(O)₂R^(o), NR^(o)S(O)₂R^(o), NR^(o)S(O)₂NR^(o)R^(o), and S(O)₂NR^(o)R^(o), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, and 4-6 membered heterocycloalkyl of R^(n) is optionally substituted with 1, 2 or 3 R^(q) substituents;

each R^(d) is independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NH₂, NHOR^(e), OR^(e), SR^(e), C(O)R^(e), C(O)NR^(e)R^(e), C(O)OR^(e), OC(O)R^(e), OC(O)NR^(e)R^(e), NHR^(e), NR^(e)R^(e), NR^(e)C(O)R^(e), NR^(e)C(O)NR^(e)R^(e), NR^(e)C(O)OR^(e), C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NOH)NR^(e)R^(e), NR^(e)C(═NCN)NR^(e)R^(e), S(O)R^(e), S(O)NR^(e)R^(e), S(O)₂R^(e), NR^(e)S(O)₂R^(e), NR^(e)S(O)₂NR^(e)R^(e), and S(O)₂NR^(e)R^(e), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(d) are each optionally substituted with 1-3 independently selected R^(f) substituents;

each R^(e) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(e) are each optionally substituted with 1, 2 or 3 independently selected R^(f) substituents; each R^(g) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(g) are each optionally substituted with 1-3 R^(p) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-(5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(r), OR^(r), SR^(r), C(O)R^(r), C(O)NR^(r)R^(r), C(O)OR^(r), OC(O)R^(r), OC(O)NR^(r)R^(r), NHR^(r), NR^(r)R^(r), NR^(r)C(O)R^(r), NR^(r)C(O)NR^(r)R^(r), NR^(r)C(O)OR^(r), C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NOH)NR^(r)R^(r), NR^(r)C(═NCN)NR^(r)R^(r), S(O)R^(r), S(O)NR^(r)R^(r), S(O)₂R^(r), NR^(r)S(O)₂R^(r), NR^(r)S(O)₂NR^(r)R^(r) and S(O)₂NR^(r)R^(r), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(p) is optionally substituted with 1, 2 or 3 R^(q) substituents;

or any two R^(a) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, 7-, 8-, 9- or 10-membered heterocycloalkyl group optionally substituted with 1, 2 or 3 R^(h) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl-, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, halo, CN, OR^(i), SR^(i), NHOR^(i), C(O)R^(i), C(O)NR^(i)R^(i), C(O)OR^(i), OC(O)R^(i), OC(O)NR^(i)R^(i), NHR^(i), NR^(i)R^(i), NR^(i)C(O)R^(i), NR^(i)C(O)NR^(i)R^(i), NR^(i)C(O)OR^(i), C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NOH)NR^(i)R^(i), NR^(i)C(═NCN)NR^(i)R^(i), S(O)R^(i), S(O)NR^(i)R^(i), S(O)₂R^(i), NR^(i)S(O)₂R^(i), NR^(i)S(O)₂NR^(i)R^(i), and S(O)₂NR^(i)R^(i), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(h) are each optionally substituted by 1, 2, or 3 R^(j) substituents independently selected from C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 5- or 6-membered heteroaryl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, C₁₋₄ haloalkyl, C₁₋₄haloalkoxy, CN, NHOR^(k), OR^(k), SR^(k), C(O)R^(k), C(O)NR^(k)R^(k), C(O)OR^(k), OC(O)R^(k), OC(O)NR^(k)R^(k), NHR^(k), NR^(k)R^(k), NR^(k)C(O)R^(k), NR^(k)C(O)NR^(k)R^(k), NR^(k)C(O)OR^(k), C(═NR^(k))NR^(k)R^(k), NR^(k)C(═NR^(k))NR^(k)R^(k), S(O)R^(k), S(O)NR^(k)R^(k), S(O)₂R^(k), NR^(k)S(O)₂R^(k), NR^(k)S(O)₂NR^(k)R^(k), and S(O)₂NR^(k)R^(k);

or two R^(h) groups attached to the same carbon atom of the 4- to 10-membered heterocycloalkyl, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl or 4- to 6-membered heterocycloalkyl having 1-2 heteroatoms as ring members selected from O, N or S;

or any two R^(c) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(e) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(g) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(i) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(k) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(o) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(r) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

each R^(i), R^(k), R^(o) or R^(r) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein the C₁₋₄ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl of R^(i), R^(k), R^(o) or R^(r) are each optionally substituted with 1, 2 or 3 R^(q) substituents;

each R^(q) is independently selected from OH, CN, —COOH, NH₂, halo, C₁₋₆ haloalkyl, C₁₋₆ alkyl, C₁₋₆ alkoxy, C₁₋₆ haloalkoxy, C₁₋₆ alkylthio, phenyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, C₃₋₆ cycloalkyl, NHR¹² and NR¹²R¹², wherein the C₁₋₆ alkyl, phenyl, C₃₋₆ cycloalkyl, 4-6 membered heterocycloalkyl, and 5-6 membered heteroaryl of R^(q) are each optionally substituted with halo, OH, CN, —COOH, NH₂, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, phenyl, C₃₋₁₀ cycloalkyl and 4-6 membered heterocycloalkyl and each R¹² is independently C₁₋₆ alkyl;

is a single bond or a double bond to maintain ring A being aromatic; and

the subscript n is an integer of 1, 2, 3 or 4.

In some embodiments, provided herein is a compound of Formula (I), or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein:

(i) G¹ is NR⁶ and G² is CR⁷R⁷; or

(ii) G¹ is CR⁶R⁶ and G² is NR⁷;

X¹ is N or CR¹;

X² is N or CR²;

X³ is N or CR³;

Z is O, S, N, NR⁴ or CR⁴;

Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N;

Cy is C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents;

R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, NH₂, —NH—C₁₋₄ alkyl, —N(C₁₋₄ alkyl)₂, NHOR¹⁰, C(O)R¹⁰, C(O)NR¹⁰R¹⁰, C(O)OR¹⁰, OC(O)R¹⁰, OC(O)NR¹⁰R¹⁰, NR¹⁰C(O)R¹⁰, NR¹⁰C(O)OR¹⁰, NR¹⁰C(O)NR¹⁰R¹⁰, C(═NR¹⁰)R¹⁰, C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰S(O)R¹⁰, NR¹⁰S(O)₂R¹⁰, NR¹⁰S(O)₂NR¹⁰R¹⁰, S(O)R¹⁰, S(O)NR¹⁰R¹⁰, S(O)₂R¹⁰, and S(O)₂NR¹⁰R¹⁰, wherein each R¹⁰ is independently selected from H and C₁₋₄ alkyl optionally substituted with 1 or 2 groups independently selected from halo, OH, CN and C₁₋₄ alkoxy; and wherein the C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl and C₁₋₄ alkoxy of R¹, R² and R³ are each optionally substituted with 1 or 2 substituents independently selected from halo, OH, CN and C₁₋₄ alkoxy;

R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR^(a), SR^(a), NHOR^(a), C(O)R^(a), C(O)NR^(a)R^(a), C(O)OR^(a), OC(O)R^(a), OC(O)NR^(a)R^(a), NHR^(a), NR^(a)R^(a), NR^(a)C(O)R^(a), NR^(a)C(O)OR^(a), NR^(a)C(O)NR^(a)R^(a), C(═NR^(a))R^(a), C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NOH)NR^(a)R^(a), NR^(a)C(═NCN)NR^(a)R^(a), NR^(a)S(O)R^(a), NR^(a)S(O)₂R^(a), NR^(a)S(O)₂NR^(a)R^(a), S(O)R^(a), S(O)NR^(a)R^(a), S(O)₂R^(a), and S(O)₂NR^(a)R^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1, 2, 3, 4 or 5 R^(b) substituents;

or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents;

or two R⁵ substituents attached to the same carbon atom, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl ring or 4-, 5-, 6- or 7-membered heterocycloalkyl ring, wherein the C₃₋₆ cycloalkyl ring and 4-, 5-, 6- or 7-membered heterocycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents;

R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR¹¹, SR¹¹, NH₂, NHR¹¹, NR¹¹R¹¹, NHOR¹¹, C(O)R¹¹, C(O)NR¹¹R¹¹, C(O)OR¹¹, OC(O)R¹¹, OC(O)NR¹¹R¹¹, NR¹¹C(O)R¹¹, NR¹¹C(O)OR¹¹, NR¹¹C(O)NR¹¹R¹¹, C(═NR¹¹)R¹¹, C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NOH)NR¹¹R¹¹, NR¹¹C(═NCN)NR¹¹R¹¹, NR¹¹S(O)R¹¹, NR¹¹S(O)₂R¹¹, NR¹¹S(O)₂NR¹¹R¹¹, S(O)R¹¹, S(O)NR¹¹R¹¹, S(O)₂R¹¹, or S(O)₂NR¹¹R¹¹, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents;

each R¹¹ is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R¹¹ are each optionally substituted with 1, 2 or 3 R^(b) substituents;

each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(a) are each optionally substituted with 1, 2 or 3 R^(d) substituents;

each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, OH, NH₂, NO₂, NHOR^(c), OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), OC(O)R^(c), OC(O)NR^(c)R^(c), C(═NR)NR^(c)R^(c), NR^(c)C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NOH)NR^(c)R^(c), NR^(c)C(═NCN)NR^(c)R^(c), NHR^(c), NR^(c)R^(c), NR^(c)C(O)R^(c), NR^(c)C(O)OR^(c), NR^(c)C(O)NR^(c)R^(c), NR^(c)S(O)R^(c), NR^(c)S(O)₂R^(c), NR^(c)S(O)₂NR^(c)R^(c), S(O)R^(c), S(O)NR^(c)R^(c), S(O)₂R^(c) and S(O)₂NR^(c)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents;

each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(c) are each optionally substituted with 1, 2 or 3 R^(f) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(g), OR^(g), SR^(g), C(O)R^(g), C(O)NR^(g)R^(g), C(O)OR^(g), OC(O)R^(g), OC(O)NR^(g)R^(g), NHR^(g), NR^(g)R^(g), NR^(g)C(O)R^(g), NR^(g)C(O)NR^(g)R^(g), NR^(g)C(O)OR^(g), C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NOH)NR^(g)R^(g), NR^(g)C(═NCN)NR^(g)R^(g), S(O)R^(g), S(O)NR^(g)R^(g), S(O)₂R^(g), NR^(g)S(O)₂R^(g), NR^(g)S(O)₂NR^(g)R^(g), and S(O)₂NR^(g)R^(g); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(f) are each optionally substituted with 1, 2 or 3 R^(n) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, NHOR^(o), OR^(o), SR^(o), C(O)R^(o), C(O)NR^(o)R^(o), C(O)OR^(o), OC(O)R^(o), OC(O)NR^(o)R^(o), NHR^(o), NR^(o)R^(o), NR^(o)C(O)R^(o), NR^(o)C(O)NR^(o)R^(o), NR^(o)C(O)OR^(o), C(═NR)NR^(o)R^(o), NR^(o)C(═NR)NR^(o)R^(o), S(O)R^(o), S(O)NR^(o)R^(o), S(O)₂R^(o), NR^(o)S(O)₂R^(o), NR^(o)S(O)₂NR^(o)R^(o), and S(O)₂NR^(o)R^(o), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, and 4-6 membered heterocycloalkyl of R^(n) is optionally substituted with 1, 2 or 3 R^(q) substituents;

each R^(d) is independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NH₂, NHOR^(e), OR^(e), SR^(e), C(O)R^(e), C(O)NR^(e)R^(e), C(O)OR^(e), OC(O)R^(e), OC(O)NR^(e)R^(e), NHR^(e), NR^(e)R^(e), NR^(e)C(O)R^(e), NR^(e)C(O)NR^(e)R^(e), NR^(e)C(O)OR^(e), C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NOH)NR^(e)R^(e), NR^(e)C(═NCN)NR^(e)R^(e), S(O)R^(e), S(O)NR^(e)R^(e), S(O)₂R^(e), NR^(e)S(O)₂R^(e), NR^(e)S(O)₂NR^(e)R^(e), and S(O)₂NR^(e)R^(e), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(d) are each optionally substituted with 1-3 independently selected R^(f) substituents;

each R^(e) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(e) are each optionally substituted with 1, 2 or 3 independently selected R^(f) substituents;

each R^(g) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(g) are each optionally substituted with 1-3 R^(p) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(r), OR^(r), SR^(r), C(O)R^(r), C(O)NR^(r)R^(r), C(O)OR^(r), OC(O)R^(r), OC(O)NR^(r)R^(r), NHR^(r), NR^(r)R^(r), NR^(r)C(O)R^(r), NR^(r)C(O)NR^(r)R^(r), NR^(r)C(O)OR^(r), C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NOH)NR^(r)R^(r), NR^(r)C(═NCN)NR^(r)R^(r), S(O)R^(r), S(O)NR^(r)R^(r), S(O)₂R^(r), NR^(r)S(O)₂R^(r), NR^(r)S(O)₂NR^(r)R^(r) and S(O)₂NR^(r)R^(r), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(p) is optionally substituted with 1, 2 or 3 R^(q) substituents;

or any two R^(a) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, 7-, 8-, 9- or 10-membered heterocycloalkyl group optionally substituted with 1, 2 or 3 R^(h) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl-, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, halo, CN, OR^(i), SR^(i), NHOR^(i), C(O)R^(i), C(O)NR^(i)R^(i), C(O)OR^(i), OC(O)R^(i), OC(O)NR^(i)R^(i), NHR^(i), NR^(i)R^(i), NR^(i)C(O)R^(i), NR^(i)C(O)NR^(i)R^(i), NR^(i)C(O)OR^(i), C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NOH)NR^(i)R^(i), NR^(i)C(═NCN)NR^(i)R^(i), S(O)R^(i), S(O)NR^(i)R^(i), S(O)₂R^(i), NR^(i)S(O)₂R^(i), NR^(i)S(O)₂NR^(i)R^(i), and S(O)₂NR^(i)R^(i), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(h) are each optionally substituted by 1, 2, or 3 R^(j) substituents independently selected from C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 5- or 6-membered heteroaryl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, C₁₋₄ haloalkyl, C₁₋₄haloalkoxy, CN, NHOR^(k), OR^(k), SR^(k), C(O)R^(k), C(O)NR^(k)R^(k), C(O)OR^(k), OC(O)R^(k), OC(O)NR^(k)R^(k), NHR^(k), NR^(k)R^(k), NR^(k)C(O)R^(k), NR^(k)C(O)NR^(k)R^(k), NR^(k)C(O)OR^(k), C(═NR^(k))NR^(k)R^(k), NR^(k)C(═NR^(k))NR^(k)R^(k), S(O)R^(k), S(O)NR^(k)R^(k), S(O)₂R^(k), NR^(k)S(O)₂R^(k), NR^(k)S(O)₂NR^(k)R^(k), and S(O)₂NR^(k)R^(k);

or two R^(h) groups attached to the same carbon atom of the 4- to 10-membered heterocycloalkyl, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl or 4- to 6-membered heterocycloalkyl having 1-2 heteroatoms as ring members selected from O, N or S;

or any two R^(c) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(e) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(g) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents;

or any two R^(i) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents, or 1, 2, or 3 independently selected R^(q) substituents;

or any two R^(k) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents, or 1, 2, or 3 independently selected R^(q) substituents;

or any two R^(o) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents, or 1, 2, or 3 independently selected R^(q) substituents;

or any two R^(r) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents, or 1, 2, or 3 independently selected R^(q) substituents;

each R^(i), R^(k), R^(o) or R^(r) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein the C₁₋₄ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl of R^(i), R^(k), R^(o) or R^(r) are each optionally substituted with 1, 2 or 3 R^(q) substituents;

each R^(q) is independently selected from OH, CN, —COOH, NH₂, halo, C₁₋₆ haloalkyl, C₁₋₆ alkyl, C₁₋₆ alkoxy, C₁₋₆ haloalkoxy, C₁₋₆ alkylthio, phenyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, C₃₋₆ cycloalkyl, NHR¹² and NR¹²R¹², wherein the C₁₋₆ alkyl, phenyl, C₃₋₆ cycloalkyl, 4-6 membered heterocycloalkyl, and 5-6 membered heteroaryl of R^(q) are each optionally substituted with halo, OH, CN, —COOH, NH₂, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, phenyl, C₃₋₁₀ cycloalkyl and 4-6 membered heterocycloalkyl and each R¹² is independently C₁₋₆ alkyl;

is a single bond or a double bond to maintain ring A being aromatic; and

the subscript n is an integer of 1, 2, 3 or 4.

In some embodiments, provided herein is a compound having Formula (II):

or a pharmaceutically acceptable salt or a stereoisomer thereof.

In some embodiments, provided herein is a compound having Formula (III):

or a pharmaceutically acceptable salt or a stereoisomer thereof.

In some embodiments, provided herein is a compound having Formula (IV):

or a pharmaceutically acceptable salt or a stereoisomer thereof.

In some embodiments, provided herein is a compound having Formula (V):

or a pharmaceutically acceptable salt or a stereoisomer thereof.

In some embodiments, provided herein is a compound having Formula (VI):

or a pharmaceutically acceptable salt or a stereoisomer thereof.

In some embodiments, provided herein is a compound having Formula (VII):

or a pharmaceutically acceptable salt or a stereoisomer thereof.

In some embodiments, R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁-4 haloalkoxy, NH₂, —NH—C₁₋₄ alkyl, —N(C₁₋₄ alkyl)₂, C(O)R¹⁰, C(O)NR¹⁰R¹⁰, C(O)OR¹⁰, OC(O)R¹⁰, OC(O)NR¹⁰R¹⁰, NR¹⁰C(O)R¹⁰, NR¹⁰C(O)OR¹⁰, NR¹⁰S(O)R¹⁰, NR¹⁰S(O)₂R¹⁰, NR¹⁰S(O)₂NR¹⁰R¹⁰, S(O)R¹⁰, S(O)NR¹⁰R¹⁰, S(O)₂R¹⁰, and S(O)₂NR¹⁰R¹⁰, wherein each R¹⁰ is independently selected from H and C₁₋₄ alkyl optionally substituted with 1 or 2 groups independently selected from halo, OH, CN and C₁₋₄ alkoxy; and wherein the C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl and C₁₋₄ alkoxy of R¹, R² and R³ are each optionally substituted with 1 or 2 substituents independently selected from halo, OH, CN and C₁₋₄ alkoxy.

In some embodiments, R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, NH₂, —NH—C₁₋₄ alkyl, and —N(C₁₋₄ alkyl)₂.

In some embodiments, R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, or C₁₋₄ haloalkoxy.

In some embodiments, R¹ is H, R² is H or halo, and R³ is H.

In some embodiments, R¹, R², and R³ are H.

In some embodiments, Cy is phenyl, 5- or 6-membered heteroaryl, C₃₋₆ cycloalkyl or 5- or 6-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents; or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents.

In some embodiments, Cy is phenyl optionally substituted with 1 to 5 R⁸ substituents. In some embodiments, Cy is 5- or 6-membered heteroaryl optionally substituted with 1 to 5 independently selected R⁸ substituents. In some embodiments, Cy is C₃₋₆ cycloalkyl optionally substituted with 1 to 5 independently selected R⁸ substituents. In some embodiments, Cy is 5- or 6-membered heterocycloalkyl optionally substituted with 1 to 5 independently selected R⁸ substituents.

In some embodiments, Cy is phenyl, 2-thiophenyl, 3-thiophenyl, 2-pyridyl, 3-pyridyl, 4-pyridyl, 3,6-dihydro-2H-pyran-4-yl, cyclohexyl, cyclohexenyl, 2,3-dihydro-1,4-benzodioxin-6-yl, 1,3-benzodioxin-5-yl, 2-methylindazol-6-yl or 1-methylindazol-4-yl, each of which is optionally substituted with 1 to 5 R⁸ substituents.

In some embodiments, R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, OR¹¹, SR¹¹, NH₂, NHR¹¹, NR¹¹R¹¹, NHOR¹¹, C(O)R¹¹, C(O)NR¹¹R¹¹, C(O)OR¹¹, OC(O)R¹¹, OC(O)NR¹¹R¹¹, NR¹¹C(O)R¹¹, NR¹¹C(O)OR¹¹, NR¹¹C(O)NR¹¹R¹¹, NR¹¹S(O)R¹¹, NR¹¹S(O)₂R¹¹, NR¹¹S(O)₂NR¹¹R¹¹, S(O)R¹¹, S(O)NR¹¹R¹¹, S(O)₂R¹¹, or S(O)₂NR¹¹R¹¹, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, and C₁₋₆ haloalkoxy of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents.

In some embodiments, R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, or NH₂, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, and C₁₋₆ haloalkoxy of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents.

In some embodiments, R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, and NH₂.

In some embodiments, R⁹ is halo, C₁₋₆ alkyl, or CN.

In some embodiments, R⁹ is CH₃, CN or halo. In some embodiments, R⁹ is CH₃. In other embodiments, R⁹ is CN. Yet in certain embodiments, R⁹ is halo such as F, Cl or Br.

In some embodiments, Z is S, CR⁴, NR⁴, or N and R⁴ is independently H or C₁₋₆ alkyl.

In some embodiments, Z is S, CH, NCH₃ or N. In certain embodiments, Z is S. In other embodiments, Z is CH. In some embodiments, Z is N(C₁₋₆ alkyl) such as NCH₃. Yet in other embodiments, Z is N.

In some embodiments, Y¹ is C or N and Y² is C.

In some embodiments, Y¹ is C and Y² is N.

In some embodiments, the moiety:

is selected from:

For example, the moiety:

The moiety:

The moiety:

The moiety:

The moiety:

can be

The moiety:

can be

The moiety:

can be

In some embodiments, (i) Y¹ is N, Y² is C and Z is N; (ii) Y¹ is N, Y² is C and Z is CR⁴; (iii) Y¹ is C, Y² is N and Z is N; (iv) Y¹ is C, Y² is N and Z is CR⁴; (v) Y¹ is C, Y² is C and Z is S; or (vi) Y¹ is C, Y² is C and Z is O.

In some embodiments, Y¹ is N, Y² is C and Z is N. In certain embodiments, Y¹ is N, Y² is C and Z is CR⁴. In certain embodiments, Y¹ is C, Y² is N and Z is N. In some embodiments, Y¹ is C, Y² is N and Z is CR⁴. In some embodiments, Y¹ is C, Y² is C and Z is S. Yet in some embodiments, Y¹ is C, Y² is C and Z is O.

In some embodiments, R⁵ is H.

In some embodiments, G¹ is NR⁶ and G² is CR⁷R⁷. In some embodiments, G¹ is CR⁶R⁶ and G² is NR⁷. In some embodiments, R⁶ is H or C₁₋₆ alkyl optionally substituted with 1, 2 or 3 R^(b) substituents. In some embodiments, R⁷ is H or C₁₋₆ alkyl optionally substituted with 1, 2 or 3 R^(b) substituents.

In some embodiments, R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, OH, NH₂, NO₂, NHOR^(c), OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), OC(O)R^(c), OC(O)NR^(c)R^(c), NHR^(c), NR^(c)R^(c), NR^(c)C(O)R^(c), NR^(c)C(O)OR^(c), NR^(c)C(O)NR^(c)R^(c), NR^(c)S(O)R^(c), NR^(c)S(O)₂R^(c), NR^(c)S(O)₂NR^(c)R^(c), S(O)R^(c), S(O)NR^(c)R^(c), S(O)₂R^(c) and S(O)₂NR^(c)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, and C₁₋₆ haloalkoxy of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents.

In some embodiments, R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, OH, NH₂, NO₂, OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), NHR^(c), NR^(c)R^(c), and NR^(c)C(O)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, and C₁₋₆ haloalkoxy of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents.

In some embodiments, R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, OH, NH₂, OR^(c), C(O)R^(c), C(O)NR^(c)R^(c), and C(O)OR^(c).

In some embodiments, R^(b) substituent is independently selected from C₁₋₆ alkyl, CN, OH, and C(O)OR^(c). In certain embodiments, R^(b) is C₁₋₆ alkyl such as methyl. In certain embodiments, R^(b) is CN. In other embodiments, R^(b) is OH. In some embodiments, R^(b) is C(O)OR^(c) such as C(O)OH or C(O)O(C₁₋₆ alkyl).

In some embodiments, provided herein is a compound of Formula I, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein:

(i) G¹ is NR⁶ and G² is CR⁷R⁷; or

(ii) G¹ is CR⁶R⁶ and G² is NR⁷;

X¹ is N or CR¹;

X² is N or CR²;

X³ is N or CR³;

Z is O, S, N, NR⁴ or CR⁴;

Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N;

Cy is C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents;

R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, NH₂, —NH—C₁₋₄ alkyl, —N(C₁₋₄ alkyl)₂, C(O)R¹⁰, C(O)NR¹⁰R¹⁰, C(O)OR¹⁰, OC(O)R¹⁰, OC(O)NR¹⁰R¹⁰, NR¹⁰C(O)R¹⁰, NR¹⁰C(O)OR¹⁰, NR¹⁰S(O)R¹⁰, NR¹⁰S(O)₂R¹⁰, NR¹⁰S(O)₂NR¹⁰R¹⁰, S(O)R¹⁰, S(O)NR¹⁰R¹⁰, S(O)₂R¹⁰, and S(O)₂NR¹⁰R¹⁰, wherein each R¹⁰ is independently selected from H and C₁₋₄ alkyl optionally substituted with 1 or 2 groups independently selected from halo, OH, CN and C₁₋₄ alkoxy; and wherein the C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl and C₁₋₄ alkoxy of R¹, R² and R³ are each optionally substituted with 1 or 2 substituents independently selected from halo, OH, CN and C₁₋₄ alkoxy;

R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, OR^(a), SR^(a), C(O)R^(a), C(O)NR^(a)R^(a), C(O)OR^(a), OC(O)R^(a), OC(O)NR^(a)R^(a), NHR^(a), NR^(a)R^(a), NR^(a)C(O)R^(a), NR^(a)C(O)OR^(a), NR^(a)S(O)R^(a), NR^(a)S(O)₂R^(a), NR^(a)S(O)₂NR^(a)R^(a), S(O)R^(a), S(O)NR^(a)R^(a), S(O)₂R^(a), and S(O)₂NR^(a)R^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1, 2, 3, 4 or 5 R^(b) substituents;

or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents;

R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, OR¹¹, SR¹¹, NH₂, NHR¹¹, NR¹¹R¹¹, NHOR¹¹, C(O)R¹¹, C(O)NR¹¹R¹¹, C(O)OR¹¹, OC(O)R¹¹, OC(O)NR¹¹R¹¹, NR¹¹C(O)R¹¹, NR¹¹C(O)OR¹¹, NR¹¹C(O)NR¹¹R¹¹, NR¹¹S(O)R¹¹, NR¹¹S(O)₂R¹¹, NR¹¹S(O)₂NR¹¹R¹¹, S(O)R¹¹, S(O)NR¹¹R¹¹, S(O)₂R¹¹, or S(O)₂NR¹¹R¹¹, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, and C₁₋₆ haloalkoxy of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents;

each R¹¹ is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl;

each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl;

each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, OH, NH₂, NO₂, NHOR^(c), OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), OC(O)R^(c), OC(O)NR^(c)R^(c), NHR^(c), NR^(c)R^(c), NR^(c)C(O)R^(c), NR^(c)C(O)OR^(c), NR^(c)C(O)NR^(c)R^(c), NR^(c)S(O)R^(c), NR^(c)S(O)₂R^(c), NR^(c)S(O)₂NR^(c)R^(c), S(O)R^(c), S(O)NR^(c)R^(c), S(O)₂R^(c) and S(O)₂NR^(c)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, and C₁₋₆ haloalkoxy of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents;

each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl of R^(c) are each optionally substituted with 1, 2 or 3 R^(f) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, halo, CN, OR^(g), SR^(g), C(O)R^(g), C(O)NR^(g)R^(g), C(O)OR^(g), OC(O)R^(g), OC(O)NR^(g)R^(g), NHR^(g), NR^(g)R^(g), NR^(g)C(O)R^(g), NR^(g)C(O)NR^(g)R^(g), NR^(g)C(O)OR^(g), S(O)R^(g), S(O)NR^(g)R^(g), S(O)₂R^(g), NR^(g)S(O)₂R^(g), NR^(g)S(O)₂NR^(g)R^(g), and S(O)₂NR^(g)R^(g);

each R^(d) is independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, NH₂, OR^(e), SR^(e), C(O)R^(e), C(O)NR^(e)R^(e), C(O)OR^(e), OC(O)R^(e), OC(O)NR^(e)R^(e), NHR^(e), NR^(e)R^(e), NR^(e)C(O)R^(e), NR^(e)C(O)NR^(e)R^(e), NR^(e)C(O)OR^(e), S(O)R^(e), S(O)NR^(e)R^(e), S(O)₂R^(e), NR^(e)S(O)₂R^(e), NR^(e)S(O)₂NR^(e)R^(e), and S(O)₂NR^(e)R^(e);

each R^(e) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-; each R^(g) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-;

is a single bond or a double bond to maintain ring A being aromatic; and

the subscript n is an integer of 1, 2, 3 or 4.

In some embodiments, provided herein is a compound of Formula I, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein:

(i) G¹ is NR⁶ and G² is CR⁷R⁷; or

(ii) G¹ is CR⁶R⁶ and G² is NR⁷;

X¹ is N or CR¹;

X² is N or CR²;

X³ is N or CR³;

Z is S, N, NR⁴ or CR⁴;

Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N;

Cy is C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents;

R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, NH₂, —NH—C₁₋₄ alkyl, and —N(C₁₋₄ alkyl)₂;

R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, OR^(a), SR^(a), C(O)R^(a), C(O)NR^(a)R^(a), and C(O)OR^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1, 2, 3, 4 or 5 R^(b) substituents;

or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents;

R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, or NH₂, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, and C₁₋₆ haloalkoxy of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents;

each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl;

each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, OH, NH₂, NO₂, OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), NHR^(c), NR^(c)R^(c), and NR^(c)C(O)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, and C₁₋₆ haloalkoxy of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents;

each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl;

each R^(d) is independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, NH₂, OR^(e), SR^(e), C(O)R^(e), C(O)NR^(e)R^(e), C(O)OR^(e), NHR^(e), NR^(e)R^(e), and NR^(e)C(O)R^(e);

each R^(e) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl;

is a single bond or a double bond to maintain ring A being aromatic; and

the subscript n is an integer of 1 or 2.

In some embodiments, provided herein is a compound of Formula I, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein:

(i) G¹ is NR⁶ and G² is CR⁷R⁷; or

(ii) G¹ is CR⁶R⁶ and G² is NR⁷;

X¹ is N or CR¹;

X² is N or CR²;

X³ is N or CR³;

Z is S, N, NR⁴ or CR⁴;

Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N;

Cy is phenyl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents;

R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, or C₁₋₄ haloalkoxy;

R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, OR^(a), and C(O)OR^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1 or 2 R^(b) substituents;

or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused 5-, 6- or 7-membered heterocycloalkyl ring, or a fused 5- or 6-membered heteroaryl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring are each optionally substituted with 1 or 2 independently selected R^(b) substituents;

R⁹ is halo, C₁₋₆ alkyl, or CN;

each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl;

each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, OH, NH₂, OR^(c), C(O)R^(c), C(O)NR^(c)R^(c), and C(O)OR^(c);

each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl;

is a single bond or a double bond to maintain ring A being aromatic; and

the subscript n is an integer of 1 or 2.

In some embodiments, compounds of Formula (I) or any subformulas as disclosed herein, when Cy is phenyl, R⁸ is not 4-aminopiperidin-1-yl, optionally substituted with 1-5 independently selected R^(b) substituents.

In some embodiments, compounds of Formula (I) or any subformulas as disclosed herein, when Cy is phenyl, R⁸ is not —NHC(O)R^(a), wherein R^(a) is 5- or 6-membered heteroaryl, or 2-pyridon-3-yl, each of which is optionally substituted with 1-5 independently selected R^(d) substituents.

In some embodiments, compounds of Formula (I) or any subformulas as disclosed herein, when Cy is phenyl, R⁸ is not (10-membered bicyclic heteroaryl)-NH—, optionally substituted with 1-5 independently selected R^(d) substituents.

It is further appreciated that certain features of the invention, which are, for clarity, described in the context of separate embodiments, can also be provided in combination in a single embodiment (while the embodiments are intended to be combined as if written in multiply dependent form). Conversely, various features of the invention which are, for brevity, described in the context of a single embodiment, can also be provided separately or in any suitable subcombination. Thus, it is contemplated as features described as embodiments of the compounds of Formula (I) can be combined in any suitable combination.

At various places in the present specification, certain features of the compounds are disclosed in groups or in ranges. It is specifically intended that such a disclosure include each and every individual subcombination of the members of such groups and ranges. For example, the term “C₁₋₆ alkyl” is specifically intended to individually disclose (without limitation) methyl, ethyl, C₃ alkyl, C₄ alkyl, C₅ alkyl and C₆ alkyl.

The term “n-membered,” where n is an integer, typically describes the number of ring-forming atoms in a moiety where the number of ring-forming atoms is n. For example, piperidinyl is an example of a 6-membered heterocycloalkyl ring, pyrazolyl is an example of a 5-membered heteroaryl ring, pyridyl is an example of a 6-membered heteroaryl ring and 1,2,3,4-tetrahydro-naphthalene is an example of a 10-membered cycloalkyl group.

At various places in the present specification, variables defining divalent linking groups may be described. It is specifically intended that each linking substituent include both the forward and backward forms of the linking substituent. For example, —NR(CR′R″)_(n)— includes both —NR(CR′R″)_(n)— and —(CR′R″)_(n)NR— and is intended to disclose each of the forms individually. Where the structure requires a linking group, the Markush variables listed for that group are understood to be linking groups. For example, if the structure requires a linking group and the Markush group definition for that variable lists “alkyl” or “aryl” then it is understood that the “alkyl” or “aryl” represents a linking alkylene group or arylene group, respectively.

The term “substituted” means that an atom or group of atoms formally replaces hydrogen as a “substituent” attached to another group. The term “substituted”, unless otherwise indicated, refers to any level of substitution, e.g., mono-, di-, tri-, tetra- or penta-substitution, where such substitution is permitted. The substituents are independently selected, and substitution may be at any chemically accessible position. It is to be understood that substitution at a given atom is limited by valency. It is to be understood that substitution at a given atom results in a chemically stable molecule. The phrase “optionally substituted” means unsubstituted or substituted. The term “substituted” means that a hydrogen atom is removed and replaced by a substituent. A single divalent substituent, e.g., oxo, can replace two hydrogen atoms.

The term “C_(n-m)” indicates a range which includes the endpoints, wherein n and m are integers and indicate the number of carbons. Examples include C₁₋₄, C₁₋₆ and the like.

The term “alkyl” employed alone or in combination with other terms, refers to a saturated hydrocarbon group that may be straight-chained or branched. The term “C_(n-m) alkyl”, refers to an alkyl group having n to m carbon atoms. An alkyl group formally corresponds to an alkane with one C—H bond replaced by the point of attachment of the alkyl group to the remainder of the compound. In some embodiments, the alkyl group contains from 1 to 6 carbon atoms, from 1 to 4 carbon atoms, from 1 to 3 carbon atoms, or 1 to 2 carbon atoms. Examples of alkyl moieties include, but are not limited to, chemical groups such as methyl, ethyl, n-propyl, isopropyl, n-butyl, tert-butyl, isobutyl, sec-butyl; higher homologs such as 2-methyl-1-butyl, n-pentyl, 3-pentyl, n-hexyl, 1,2,2-trimethylpropyl and the like.

The term “alkenyl” employed alone or in combination with other terms, refers to a straight-chain or branched hydrocarbon group corresponding to an alkyl group having one or more double carbon-carbon bonds. An alkenyl group formally corresponds to an alkene with one C—H bond replaced by the point of attachment of the alkenyl group to the remainder of the compound. The term “C_(n-m) alkenyl” refers to an alkenyl group having n to m carbons. In some embodiments, the alkenyl moiety contains 2 to 6, 2 to 4, or 2 to 3 carbon atoms. Example alkenyl groups include, but are not limited to, ethenyl, n-propenyl, isopropenyl, n-butenyl, sec-butenyl and the like.

The term “alkynyl” employed alone or in combination with other terms, refers to a straight-chain or branched hydrocarbon group corresponding to an alkyl group having one or more triple carbon-carbon bonds. An alkynyl group formally corresponds to an alkyne with one C—H bond replaced by the point of attachment of the alkyl group to the remainder of the compound. The term “C_(n-m) alkynyl” refers to an alkynyl group having n to m carbons. Example alkynyl groups include, but are not limited to, ethynyl, propyn-1-yl, propyn-2-yl and the like. In some embodiments, the alkynyl moiety contains 2 to 6, 2 to 4, or 2 to 3 carbon atoms.

The term “alkylene”, employed alone or in combination with other terms, refers to a divalent alkyl linking group. An alkylene group formally corresponds to an alkane with two C—H bond replaced by points of attachment of the alkylene group to the remainder of the compound. The term “C_(n-m) alkylene” refers to an alkylene group having n to m carbon atoms. Examples of alkylene groups include, but are not limited to, ethan-1,2-diyl, propan-1,3-diyl, propan-1,2-diyl, butan-1,4-diyl, butan-1,3-diyl, butan-1,2-diyl, 2-methyl-propan-1,3-diyl and the like.

The term “alkoxy”, employed alone or in combination with other terms, refers to a group of formula —O-alkyl, wherein the alkyl group is as defined above. The term “C_(n-m) alkoxy” refers to an alkoxy group, the alkyl group of which has n to m carbons. Example alkoxy groups include methoxy, ethoxy, propoxy (e.g., n-propoxy and isopropoxy), t-butoxy and the like. In some embodiments, the alkyl group has 1 to 6, 1 to 4, or 1 to 3 carbon atoms.

The term “amino” refers to a group of formula —NH₂.

The term “carbonyl”, employed alone or in combination with other terms, refers to a —C(═O)— group, which also may be written as C(O).

The term “cyano” or “nitrile” refers to a group of formula —C≡N, which also may be written as —CN.

The terms “halo” or “halogen”, used alone or in combination with other terms, refers to fluoro, chloro, bromo and iodo. In some embodiments, “halo” refers to a halogen atom selected from F, Cl, or Br. In some embodiments, halo groups are F.

The term “haloalkyl” as used herein refers to an alkyl group in which one or more of the hydrogen atoms has been replaced by a halogen atom. The term “C_(n-m) haloalkyl” refers to a C_(n-m) alkyl group having n to m carbon atoms and from at least one up to {2(n to m)+1}halogen atoms, which may either be the same or different. In some embodiments, the halogen atoms are fluoro atoms. In some embodiments, the haloalkyl group has 1 to 6 or 1 to 4 carbon atoms. Example haloalkyl groups include CF₃, C₂F₅, CHF₂, CCl₃, CHCl₂, C₂Cl₅ and the like. In some embodiments, the haloalkyl group is a fluoroalkyl group.

The term “haloalkoxy”, employed alone or in combination with other terms, refers to a group of formula —O-haloalkyl, wherein the haloalkyl group is as defined above. The term “C_(n-m) haloalkoxy” refers to a haloalkoxy group, the haloalkyl group of which has n to m carbons. Example haloalkoxy groups include trifluoromethoxy and the like. In some embodiments, the haloalkoxy group has 1 to 6, 1 to 4, or 1 to 3 carbon atoms.

The term “oxo” refers to an oxygen atom as a divalent substituent, forming a carbonyl group when attached to carbon, or attached to a heteroatom forming a sulfoxide or sulfone group, or an N-oxide group. In some embodiments, heterocyclic groups may be optionally substituted by 1 or 2 oxo (═O) substituents.

The term “sulfido” refers to a sulfur atom as a divalent substituent, forming a thiocarbonyl group (C═S) when attached to carbon.

The term “aromatic” refers to a carbocycle or heterocycle having one or more polyunsaturated rings having aromatic character (i.e., having (4n+2) delocalized π (pi) electrons where n is an integer).

The term “aryl,” employed alone or in combination with other terms, refers to an aromatic hydrocarbon group, which may be monocyclic or polycyclic (e.g., having 2 fused rings). The term “C_(n-m) aryl” refers to an aryl group having from n to m ring carbon atoms. Aryl groups include, e.g., phenyl, naphthyl, and the like. In some embodiments, aryl groups have from 6 to about 10 carbon atoms. In some embodiments aryl groups have 6 carbon atoms. In some embodiments aryl groups have 10 carbon atoms. In some embodiments, the aryl group is phenyl. In some embodiments, the aryl group is naphthyl.

The term “heteroaryl” or “heteroaromatic,” employed alone or in combination with other terms, refers to a monocyclic or polycyclic aromatic heterocycle having at least one heteroatom ring member selected from sulfur, oxygen and nitrogen. In some embodiments, the heteroaryl ring has 1, 2, 3 or 4 heteroatom ring members independently selected from nitrogen, sulfur and oxygen. In some embodiments, any ring-forming N in a heteroaryl moiety can be an N-oxide. In some embodiments, the heteroaryl has 5-14 ring atoms including carbon atoms and 1, 2, 3 or 4 heteroatom ring members independently selected from nitrogen, sulfur and oxygen. In some embodiments, the heteroaryl has 5-10 ring atoms including carbon atoms and 1, 2, 3 or 4 heteroatom ring members independently selected from nitrogen, sulfur and oxygen. In some embodiments, the heteroaryl has 5-6 ring atoms and 1 or 2 heteroatom ring members independently selected from nitrogen, sulfur and oxygen. In some embodiments, the heteroaryl is a five-membered or six-membered heteroaryl ring. In other embodiments, the heteroaryl is an eight-membered, nine-membered or ten-membered fused bicyclic heteroaryl ring. Example heteroaryl groups include, but are not limited to, pyridinyl (pyridyl), pyrimidinyl, pyrazinyl, pyridazinyl, pyrrolyl, pyrazolyl, azolyl, oxazolyl, thiazolyl, imidazolyl, furanyl, thiophenyl, quinolinyl, isoquinolinyl, naphthyridinyl (including 1,2-, 1,3-, 1,4-, 1,5-, 1,6-, 1,7-, 1,8-, 2,3- and 2,6-naphthyridine), indolyl, indazolyl, benzothiophenyl, benzofuranyl, benzisoxazolyl, imidazo[1,2-b]thiazolyl, purinyl, and the like.

A five-membered heteroaryl ring is a heteroaryl group having five ring atoms wherein one or more (e.g., 1, 2 or 3) ring atoms are independently selected from N, O and S. Exemplary five-membered ring heteroaryls include thienyl, furyl, pyrrolyl, imidazolyl, thiazolyl, oxazolyl, pyrazolyl, isothiazolyl, isoxazolyl, 1,2,3-triazolyl, tetrazolyl, 1,2,3-thiadiazolyl, 1,2,3-oxadiazolyl, 1,2,4-triazolyl, 1,2,4-thiadiazolyl, 1,2,4-oxadiazolyl, 1,3,4-triazolyl, 1,3,4-thiadiazolyl and 1,3,4-oxadiazolyl.

A six-membered heteroaryl ring is a heteroaryl group having six ring atoms wherein one or more (e.g., 1, 2 or 3) ring atoms are independently selected from N, O and S. Exemplary six-membered ring heteroaryls are pyridyl, pyrazinyl, pyrimidinyl, triazinyl and pyridazinyl.

The term “cycloalkyl,” employed alone or in combination with other terms, refers to a non-aromatic hydrocarbon ring system (monocyclic, bicyclic or polycyclic), including cyclized alkyl and alkenyl groups. The term “C_(n-m) cycloalkyl” refers to a cycloalkyl that has n to m ring member carbon atoms. Cycloalkyl groups can include mono- or polycyclic (e.g., having 2, 3 or 4 fused rings) groups and spirocycles. Cycloalkyl groups can have 3, 4, 5, 6 or 7 ring-forming carbons (C₃-7). In some embodiments, the cycloalkyl group has 3 to 6 ring members, 3 to 5 ring members, or 3 to 4 ring members. In some embodiments, the cycloalkyl group is monocyclic. In some embodiments, the cycloalkyl group is monocyclic or bicyclic. In some embodiments, the cycloalkyl group is a C₃₋₆ monocyclic cycloalkyl group. Ring-forming carbon atoms of a cycloalkyl group can be optionally oxidized to form an oxo or sulfido group. Cycloalkyl groups also include cycloalkylidenes. In some embodiments, cycloalkyl is cyclopropyl, cyclobutyl, cyclopentyl or cyclohexyl. Also included in the definition of cycloalkyl are moieties that have one or more aromatic rings fused (i.e., having a bond in common with) to the cycloalkyl ring, e.g., benzo or thienyl derivatives of cyclopentane, cyclohexane and the like. A cycloalkyl group containing a fused aromatic ring can be attached through any ring-forming atom including a ring-forming atom of the fused aromatic ring. Examples of cycloalkyl groups include cyclopropyl, cyclobutyl, cyclopentyl, cyclohexyl, cycloheptyl, cyclopentenyl, cyclohexenyl, cyclohexadienyl, cycloheptatrienyl, norbomyl, norpinyl, norcarnyl, bicyclo[1.1.1]pentanyl, bicyclo[2.1.1]hexanyl, and the like. In some embodiments, the cycloalkyl group is cyclopropyl, cyclobutyl, cyclopentyl, or cyclohexyl.

The term “heterocycloalkyl,” employed alone or in combination with other terms, refers to a non-aromatic ring or ring system, which may optionally contain one or more alkenylene groups as part of the ring structure, which has at least one heteroatom ring member independently selected from nitrogen, sulfur oxygen and phosphorus, and which has 4-10 ring members, 4-7 ring members, or 4-6 ring members. Included within the term “heterocycloalkyl” are monocyclic 4-, 5-, 6- and 7-membered heterocycloalkyl groups. Heterocycloalkyl groups can include mono- or bicyclic (e.g., having two fused or bridged rings) ring systems. In some embodiments, the heterocycloalkyl group is a monocyclic group having 1, 2 or 3 heteroatoms independently selected from nitrogen, sulfur and oxygen. Ring-forming carbon atoms and heteroatoms of a heterocycloalkyl group can be optionally oxidized to form an oxo or sulfido group or other oxidized linkage (e.g., C(O), S(O), C(S) or S(O)₂, N-oxide etc.) or a nitrogen atom can be quaternized. The heterocycloalkyl group can be attached through a ring-forming carbon atom or a ring-forming heteroatom. In some embodiments, the heterocycloalkyl group contains 0 to 3 double bonds. In some embodiments, the heterocycloalkyl group contains 0 to 2 double bonds. Also included in the definition of heterocycloalkyl are moieties that have one or more aromatic rings fused (i.e., having a bond in common with) to the heterocycloalkyl ring, e.g., benzo or thienyl derivatives of piperidine, morpholine, azepine, etc. A heterocycloalkyl group containing a fused aromatic ring can be attached through any ring-forming atom including a ring-forming atom of the fused aromatic ring. Examples of heterocycloalkyl groups include azetidinyl, azepanyl, dihydrobenzofuranyl, dihydrofuranyl, dihydropyranyl, dihydrobenzodioxinyl, benzodioxinyl, morpholino, 3-oxa-9-azaspiro[5.5]undecanyl, 1-oxa-8-azaspiro[4.5]decanyl, piperidinyl, piperazinyl, oxopiperazinyl, pyranyl, pyrrolidinyl, quinuclidinyl, tetrahydrofuranyl, tetrahydropyranyl, 1,2,3,4-tetrahydroquinolinyl, tropanyl, and thiomorpholino.

At certain places, the definitions or embodiments refer to specific rings (e.g., an azetidine ring, a pyridine ring, etc.). Unless otherwise indicated, these rings can be attached to any ring member provided that the valency of the atom is not exceeded. For example, an azetidine ring may be attached at any position of the ring, whereas an azetidin-3-yl ring is attached at the 3-position.

The compounds described herein can be asymmetric (e.g., having one or more stereocenters). All stereoisomers, such as enantiomers and diastereomers, are intended unless otherwise indicated. Compounds of the present invention that contain asymmetrically substituted carbon atoms can be isolated in optically active or racemic forms. Methods on how to prepare optically active forms from optically inactive starting materials are known in the art, such as by resolution of racemic mixtures or by stereoselective synthesis. Many geometric isomers of olefins, C═N double bonds and the like can also be present in the compounds described herein, and all such stable isomers are contemplated in the present invention. Cis and trans geometric isomers of the compounds of the present invention are described and may be isolated as a mixture of isomers or as separated isomeric forms.

Resolution of racemic mixtures of compounds can be carried out by any of numerous methods known in the art. One method includes fractional recrystallization using a chiral resolving acid which is an optically active, salt-forming organic acid. Suitable resolving agents for fractional recrystallization methods are, e.g., optically active acids, such as the D and L forms of tartaric acid, diacetyltartaric acid, dibenzoyltartaric acid, mandelic acid, malic acid, lactic acid or the various optically active camphorsulfonic acids such as β-camphorsulfonic acid. Other resolving agents suitable for fractional crystallization methods include stereoisomerically pure forms of α-methylbenzylamine (e.g., S and R forms, or diastereomerically pure forms), 2-phenylglycinol, norephedrine, ephedrine, N-methylephedrine, cyclohexylethylamine, 1,2-diaminocyclohexane and the like.

Resolution of racemic mixtures can also be carried out by elution on a column packed with an optically active resolving agent (e.g., dinitrobenzoylphenylglycine). Suitable elution solvent composition can be determined by one skilled in the art.

In some embodiments, the compounds of the invention have the (R)-configuration. In other embodiments, the compounds have the (S)-configuration. In compounds with more than one chiral centers, each of the chiral centers in the compound may be independently (R) or (S), unless otherwise indicated.

Compounds of the invention also include tautomeric forms. Tautomeric forms result from the swapping of a single bond with an adjacent double bond together with the concomitant migration of a proton. Tautomeric forms include prototropic tautomers which are isomeric protonation states having the same empirical formula and total charge. Example prototropic tautomers include ketone—enol pairs, amide—imidic acid pairs, lactam—lactim pairs, enamine—imine pairs, and annular forms where a proton can occupy two or more positions of a heterocyclic system, e.g., 1H- and 3H-imidazole, 1H-, 2H- and 4H-1,2,4-triazole, 1H- and 2H-isoindole and 1H- and 2H-pyrazole. Tautomeric forms can be in equilibrium or sterically locked into one form by appropriate substitution.

Compounds of the invention can also include all isotopes of atoms occurring in the intermediates or final compounds. Isotopes include those atoms having the same atomic number but different mass numbers. For example, isotopes of hydrogen include tritium and deuterium. One or more constituent atoms of the compounds of the invention can be replaced or substituted with isotopes of the atoms in natural or non-natural abundance. In some embodiments, the compound includes at least one deuterium atom. For example, one or more hydrogen atoms in a compound of the present disclosure can be replaced or substituted by deuterium. In some embodiments, the compound includes two or more deuterium atoms. In some embodiments, the compound includes 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 or 12 deuterium atoms. Synthetic methods for including isotopes into organic compounds are known in the art.

The term, “compound,” as used herein is meant to include all stereoisomers, geometric isomers, tautomers and isotopes of the structures depicted. The term is also meant to refer to compounds of the inventions, regardless of how they are prepared, e.g., synthetically, through biological process (e.g., metabolism or enzyme conversion), or a combination thereof.

All compounds, and pharmaceutically acceptable salts thereof, can be found together with other substances such as water and solvents (e.g., hydrates and solvates) or can be isolated. When in the solid state, the compounds described herein and salts thereof may occur in various forms and may, e.g., take the form of solvates, including hydrates. The compounds may be in any solid state form, such as a polymorph or solvate, so unless clearly indicated otherwise, reference in the specification to compounds and salts thereof should be understood as encompassing any solid state form of the compound.

In some embodiments, the compounds of the invention, or salts thereof, are substantially isolated. By “substantially isolated” is meant that the compound is at least partially or substantially separated from the environment in which it was formed or detected. Partial separation can include, e.g., a composition enriched in the compounds of the invention. Substantial separation can include compositions containing at least about 50%, at least about 60%, at least about 70%, at least about 80%, at least about 90%, at least about 95%, at least about 97%, or at least about 99% by weight of the compounds of the invention, or salt thereof.

The phrase “pharmaceutically acceptable” is employed herein to refer to those compounds, materials, compositions and/or dosage forms which are, within the scope of sound medical judgment, suitable for use in contact with the tissues of human beings and animals without excessive toxicity, irritation, allergic response, or other problem or complication, commensurate with a reasonable benefit/risk ratio.

The expressions, “ambient temperature” and “room temperature,” as used herein, are understood in the art, and refer generally to a temperature, e.g., a reaction temperature, that is about the temperature of the room in which the reaction is carried out, e.g., a temperature from about 20° C. to about 30° C.

The present invention also includes pharmaceutically acceptable salts of the compounds described herein. The term “pharmaceutically acceptable salts” refers to derivatives of the disclosed compounds wherein the parent compound is modified by converting an existing acid or base moiety to its salt form. Examples of pharmaceutically acceptable salts include, but are not limited to, mineral or organic acid salts of basic residues such as amines; alkali or organic salts of acidic residues such as carboxylic acids; and the like. The pharmaceutically acceptable salts of the present invention include the non-toxic salts of the parent compound formed, e.g., from non-toxic inorganic or organic acids. The pharmaceutically acceptable salts of the present invention can be synthesized from the parent compound which contains a basic or acidic moiety by conventional chemical methods. Generally, such salts can be prepared by reacting the free acid or base forms of these compounds with a stoichiometric amount of the appropriate base or acid in water or in an organic solvent, or in a mixture of the two; generally, non-aqueous media like ether, ethyl acetate, alcohols (e.g., methanol, ethanol, iso-propanol or butanol) or acetonitrile (MeCN) are preferred. Lists of suitable salts are found in Remington's Pharmaceutical Sciences, 17^(th) Ed., (Mack Publishing Company, Easton, 1985), p. 1418, Berge et al., J. Pharm. Sci., 1977, 66(1), 1-19 and in Stahl et al., Handbook of Pharmaceutical Salts: Properties, Selection, and Use, (Wiley, 2002). In some embodiments, the compounds described herein include the N-oxide forms.

II. Synthesis

Compounds of the invention, including salts thereof, can be prepared using known organic synthesis techniques and can be synthesized according to any of numerous possible synthetic routes, such as those in the Schemes below.

The reactions for preparing compounds of the invention can be carried out in suitable solvents which can be readily selected by one of skill in the art of organic synthesis. Suitable solvents can be substantially non-reactive with the starting materials (reactants), the intermediates or products at the temperatures at which the reactions are carried out, e.g., temperatures which can range from the solvent's freezing temperature to the solvent's boiling temperature. A given reaction can be carried out in one solvent or a mixture of more than one solvent. Depending on the particular reaction step, suitable solvents for a particular reaction step can be selected by the skilled artisan.

Preparation of compounds of the invention can involve the protection and deprotection of various chemical groups. The need for protection and deprotection, and the selection of appropriate protecting groups, can be readily determined by one skilled in the art. The chemistry of protecting groups is described, e.g., in Kocienski, Protecting Groups, (Thieme, 2007); Robertson, Protecting Group Chemistry, (Oxford University Press, 2000); Smith et al., March's Advanced Organic Chemistry: Reactions, Mechanisms, and Structure, 6^(th) Ed. (Wiley, 2007); Peturssion et al., “Protecting Groups in Carbohydrate Chemistry,” J. Chem. Educ., 1997, 74(11), 1297; and Wuts et al., Protective Groups in Organic Synthesis, 4th Ed., (Wiley, 2006).

Reactions can be monitored according to any suitable method known in the art. For example, product formation can be monitored by spectroscopic means, such as nuclear magnetic resonance spectroscopy (e.g., ¹H or ¹³C), infrared spectroscopy, spectrophotometry (e.g., UV-visible), mass spectrometry or by chromatographic methods such as high performance liquid chromatography (HPLC) or thin layer chromatography (TLC).

The Schemes below provide general guidance in connection with preparing the compounds of the invention. One skilled in the art would understand that the preparations shown in the Schemes can be modified or optimized using general knowledge of organic chemistry to prepare various compounds of the invention.

Compounds of Formula (I) can be prepared, e.g., using a process as illustrated in Schemes 1-3.

Compound of formula 1-7 can be synthesized using a process shown in Scheme 1. A palladium-catalyzed cross-coupling reaction of halo-substituted aromatic amine 1-1 with a suitable coupling reagent 1-2 (where M is, e.g., —B(OH)₂) under standard conditions (such as Suzuki coupling reaction, e.g., in the presence of a palladium catalyst and a suitable base) can produce compound 1-3. The reaction of aromatic amine 1-3 with an acid of formula 1-4 using a coupling reagent such as, but not limited to, HATU can give the amide 1-5, which can be deprotected under acidic conditions (e.g., hydrochloric acid or trifluoroacetic acid) to provide the amine 1-6. The R⁷ group can be introduced either by direct alkylation with an alkyl halide or reductive alkylation with an aldehyde or a ketone to give the desired product of formula 1-7.

Alternatively, compound of formula 2-7 can be synthesized using a process shown in Scheme 2. The reaction of halo-substituted aromatic amine 2-1 with an ester of formula 2-2 in the presence of a suitable base such as, but not limited to, potassium tert-butoxide or sodium hydride can furnish the amide 2-3. The Boc protecting group in compound 2-3 can be removed under acidic conditions (e.g., hydrochloric acid or trifluoroacetic acid) to provide the free amine of formula 2-4. The Cy ring can be installed by the cross-coupling of compound 2-4 with a suitable coupling reagent 2-5 (where M is, e.g., —B(OH)₂) under standard conditions (such as Suzuki coupling reaction, e.g., in the presence of a palladium catalyst and a suitable base) to give compound of formula 2-6. Finally, the R⁷ group can be introduced either by direct alkylation with an alkyl halide or reductive alkylation with an aldehyde or a ketone to give the desired product of formula 2-7.

Ester of formula 3-3 can be synthesized using a process shown in Scheme 3. The free amine group in compound 3-1 can be protected with Boc to give the compound of formula 3-2. Compound 3-2 can be deprotonated by a strong base such as, but not limited to, n-butyl lithium or lithium bis(trimethylsilyl)amide to generate the corresponding aryl lithium intermediate, which can further react with a chloroformate or carbon dioxide to give the desired ester or acid of formula 3-3.

Compound of formula 4 can be synthesized in accordance with the synthetic protocols set forth in Schemes 1-3, using the appropriate starting materials.

III. Uses of the Compounds

Compounds of the present disclosure can inhibit the activity of PD-1/PD-L1 protein/protein interaction and, thus, are useful in treating diseases and disorders associated with activity of PD-1 and the diseases and disorders associated with PD-L1 including its interaction with other proteins such as PD-1 and B7-1 (CD80). Advantageously, the compounds of the present disclosure demonstrate better efficacy and favorable safety and toxicity profiles in animal studies. In certain embodiments, the compounds of the present disclosure, or pharmaceutically acceptable salts or stereoisomers thereof, are useful for therapeutic administration to enhance, stimulate and/or increase immunity in cancer or chronic infection, including enhancement of response to vaccination. In some embodiments, the present disclosure provides a method for inhibiting or blocking the PD-1/PD-L1 protein/protein interaction. The method includes administering to an individual or a patient a compound of Formula (I) or any of the formulas as described herein or of a compound as recited in any of the claims and described herein, or a pharmaceutically acceptable salt or a stereoisomer thereof. The compounds of the present disclosure can be used alone, in combination with other agents or therapies or as an adjuvant or neoadjuvant for the treatment of diseases or disorders, including cancer or infection diseases. For the uses described herein, any of the compounds of the disclosure, including any of the embodiments thereof, may be used.

The compounds of the present disclosure inhibit the PD-1/PD-L1 protein/protein interaction, resulting in a PD-1 pathway blockade. The blockade of PD-1 can enhance the immune response to cancerous cells and infectious diseases in mammals, including humans. In some embodiments, the present disclosure provides treatment of an individual or a patient in vivo using a compound of Formula (I) or a salt or stereoisomer thereof such that growth of cancerous tumors is inhibited. A compound of Formula (I) or of any of the formulas as described herein, or a compound as recited in any of the claims and described herein, or a salt or stereoisomer thereof, can be used to inhibit the growth of cancerous tumors. Alternatively, a compound of Formula (I) or of any of the formulas as described herein, or a compound as recited in any of the claims and described herein, or a salt or stereoisomer thereof, can be used in conjunction with other agents or standard cancer treatments, as described below. In one embodiment, the present disclosure provides a method for inhibiting growth of tumor cells in vitro. The method includes contacting the tumor cells in vitro with a compound of Formula (I) or of any of the formulas as described herein, or of a compound as recited in any of the claims and described herein, or of a salt or stereoisomer thereof. In another embodiment, the present disclosure provides a method for inhibiting growth of tumor cells in an individual or a patient. The method includes administering to the individual or patient in need thereof a therapeutically effective amount of a compound of Formula (I) or of any of the formulas as described herein, or of a compound as recited in any of the claims and described herein, or a salt or a stereoisomer thereof.

In some embodiments, provided herein is a method for treating cancer. The method includes administering to a patient in need thereof, a therapeutically effective amount of a compound of Formula (I) or any of the formulas as described herein, a compound as recited in any of the claims and described herein, or a salt thereof. Examples of cancers include those whose growth may be inhibited using compounds of the disclosure and cancers typically responsive to immunotherapy.

In some embodiments, the present disclosure provides a method of enhancing, stimulating and/or increasing the immune response in a patient. The method includes administering to the patient in need thereof a therapeutically effective amount of a compound of Formula (I) or any of the formulas as described herein, a compound as recited in any of the claims and described herein, or a salt thereof.

Examples of cancers that are treatable using the compounds of the present disclosure include, but are not limited to, bone cancer, pancreatic cancer, skin cancer, cancer of the head or neck, cutaneous or intraocular malignant melanoma, uterine cancer, ovarian cancer, rectal cancer, cancer of the anal region, stomach cancer, testicular cancer, uterine cancer, carcinoma of the fallopian tubes, carcinoma of the endometrium, endometrial cancer, carcinoma of the cervix, carcinoma of the vagina, carcinoma of the vulva, Hodgkin's Disease, non-Hodgkin's lymphoma, cancer of the esophagus, cancer of the small intestine, cancer of the endocrine system, cancer of the thyroid gland, cancer of the parathyroid gland, cancer of the adrenal gland, sarcoma of soft tissue, cancer of the urethra, cancer of the penis, chronic or acute leukemias including acute myeloid leukemia, chronic myeloid leukemia, acute lymphoblastic leukemia, chronic lymphocytic leukemia, solid tumors of childhood, lymphocytic lymphoma, cancer of the bladder, cancer of the kidney or urethra, carcinoma of the renal pelvis, neoplasm of the central nervous system (CNS), primary CNS lymphoma, tumor angiogenesis, spinal axis tumor, brain stem glioma, pituitary adenoma, Kaposi's sarcoma, epidermoid cancer, squamous cell cancer, T-cell lymphoma, environmentally induced cancers including those induced by asbestos, and combinations of said cancers. The compounds of the present disclosure are also useful for the treatment of metastatic cancers, especially metastatic cancers that express PD-L1.

In some embodiments, cancers treatable with compounds of the present disclosure include melanoma (e.g., metastatic malignant melanoma), renal cancer (e.g. clear cell carcinoma), prostate cancer (e.g. hormone refractory prostate adenocarcinoma), breast cancer, colon cancer and lung cancer (e.g. non-small cell lung cancer). Additionally, the disclosure includes refractory or recurrent malignancies whose growth may be inhibited using the compounds of the disclosure.

In some embodiments, cancers that are treatable using the compounds of the present disclosure include, but are not limited to, solid tumors (e.g., prostate cancer, colon cancer, esophageal cancer, endometrial cancer, ovarian cancer, uterine cancer, renal cancer, hepatic cancer, pancreatic cancer, gastric cancer, breast cancer, lung cancer, cancers of the head and neck, thyroid cancer, glioblastoma, sarcoma, bladder cancer, etc.), hematological cancers (e.g., lymphoma, leukemia such as acute lymphoblastic leukemia (ALL), acute myelogenous leukemia (AML), chronic lymphocytic leukemia (CLL), chronic myelogenous leukemia (CML), DLBCL, mantle cell lymphoma, Non-Hodgkin lymphoma (including relapsed or refractory NHL and recurrent follicular), Hodgkin lymphoma or multiple myeloma) and combinations of said cancers.

PD-1 pathway blockade with compounds of the present disclosure can also be used for treating infections such as viral, bacteria fungus and parasite infections. The present disclosure provides a method for treating infections such as viral infections. The method includes administering to a patient in need thereof, a therapeutically effective amount of a compound of Formula (I) or any of the formulas as described herein, a compound as recited in any of the claims and described herein, a salt thereof. Examples of viruses causing infections treatable by methods of the present disclosure include, but are not limit to, human immunodeficiency virus, human papillomavirus, influenza, hepatitis A, B, C or D viruses, adenovirus, poxvirus, herpes simplex viruses, human cytomegalovirus, severe acute respiratory syndrome virus, ebola virus, and measles virus. In some embodiments, viruses causing infections treatable by methods of the present disclosure include, but are not limit to, hepatitis (A, B, or C), herpes virus (e.g., VZV, HSV-1, HAV-6, HSV-II, and CMV, Epstein Barr virus), adenovirus, influenza virus, flaviviruses, echovirus, rhinovirus, coxsackie virus, comovirus, respiratory syncytial virus, mumpsvirus, rotavirus, measles virus, rubella virus, parvovirus, vaccinia virus, HTLV virus, dengue virus, papillomavirus, molluscum virus, poliovirus, rabies virus, JC virus and arboviral encephalitis virus.

The present disclosure provides a method for treating bacterial infections. The method includes administering to a patient in need thereof, a therapeutically effective amount of a compound of Formula (I) or any of the formulas as described herein, a compound as recited in any of the claims and described herein, or a salt thereof. Non-limiting examples of pathogenic bacteria causing infections treatable by methods of the disclosure include chlamydia, rickettsial bacteria, mycobacteria, staphylococci, streptococci, pneumonococci, meningococci and conococci, klebsiella, proteus, serratia, pseudomonas, legionella, diphtheria, salmonella, bacilli, cholera, tetanus, botulism, anthrax, plague, leptospirosis, and Lyme's disease bacteria.

The present disclosure provides a method for treating fungus infections. The method includes administering to a patient in need thereof, a therapeutically effective amount of a compound of Formula (I) or any of the formulas as described herein, a compound as recited in any of the claims and described herein, or a salt thereof. Non-limiting examples of pathogenic fungi causing infections treatable by methods of the disclosure include Candida (albicans, krusei, glabrata, tropicalis, etc.), Cryptococcus neoformans, Aspergillus (fumigatus, niger, etc.), Genus Mucorales (mucor, absidia, rhizophus), Sporothrix schenkii, Blastomyces dermatitidis, Paracoccidioides brasiliensis, Coccidioides immitis and Histoplasma capsulatum.

The present disclosure provides a method for treating parasite infections. The method includes administering to a patient in need thereof, a therapeutically effective amount of a compound of Formula (I) or any of the formulas as described herein, a compound as recited in any of the claims and described herein, or a salt thereof. Non-limiting examples of pathogenic parasites causing infections treatable by methods of the disclosure include Entamoeba histolytica, Balantidium coli, Naegleriafowleri, Acanthamoeba sp., Giardia lambia, Cryptosporidium sp., Pneumocystis carinii, Plasmodium vivax, Babesia microti, Trypanosoma brucei, Trypanosoma cruzi, Leishmania donovani, Toxoplasma gondi, and Nippostrongylus brasiliensis.

The terms “individual” or “patient,” used interchangeably, refer to any animal, including mammals, preferably mice, rats, other rodents, rabbits, dogs, cats, swine, cattle, sheep, horses, or primates, and most preferably humans.

The phrase “therapeutically effective amount” refers to the amount of active compound or pharmaceutical agent that elicits the biological or medicinal response in a tissue, system, animal, individual or human that is being sought by a researcher, veterinarian, medical doctor or other clinician.

As used herein, the term “treating” or “treatment” refers to one or more of (1) inhibiting the disease; e.g., inhibiting a disease, condition or disorder in an individual who is experiencing or displaying the pathology or symptomatology of the disease, condition or disorder (i.e., arresting further development of the pathology and/or symptomatology); and (2) ameliorating the disease; e.g., ameliorating a disease, condition or disorder in an individual who is experiencing or displaying the pathology or symptomatology of the disease, condition or disorder (i.e., reversing the pathology and/or symptomatology) such as decreasing the severity of disease.

In some embodiments, the compounds of the invention are useful in preventing or reducing the risk of developing any of the diseases referred to herein; e.g., preventing or reducing the risk of developing a disease, condition or disorder in an individual who may be predisposed to the disease, condition or disorder but does not yet experience or display the pathology or symptomatology of the disease.

Combination Therapies

Cancer cell growth and survival can be impacted by multiple signaling pathways. Thus, it is useful to combine different enzyme/protein/receptor inhibitors, exhibiting different preferences in the targets which they modulate the activities of, to treat such conditions. Targeting more than one signaling pathway (or more than one biological molecule involved in a given signaling pathway) may reduce the likelihood of drug-resistance arising in a cell population, and/or reduce the toxicity of treatment.

The compounds of the present disclosure can be used in combination with one or more other enzyme/protein/receptor inhibitors for the treatment of diseases, such as cancer or infections. Examples of cancers include solid tumors and liquid tumors, such as blood cancers. Examples of infections include viral infections, bacterial infections, fungus infections or parasite infections. For example, the compounds of the present disclosure can be combined with one or more inhibitors of the following kinases for the treatment of cancer: Akt1, Akt2, Akt3, TGF-βR, PKA, PKG, PKC, CaM-kinase, phosphorylase kinase, MEKK, ERK, MAPK, mTOR, EGFR, HER2, HER3, HER4, INS-R, IGF-1R, IR-R, PDGFacR, PDGF3R, CSFIR, KIT, FLK-II, KDR/FLK-1, FLK-4, fit-1, FGFR1, FGFR2, FGFR3, FGFR4, c-Met, Ron, Sea, TRKA, TRKB, TRKC, FLT3, VEGFR/Flt2, Flt4, EphA1, EphA2, EphA3, EphB2, EphB4, Tie2, Src, Fyn, Lck, Fgr, Btk, Fak, SYK, FRK, JAK, ABL, ALK and B-Raf. In some embodiments, the compounds of the present disclosure can be combined with one or more of the following inhibitors for the treatment of cancer or infections. Non-limiting examples of inhibitors that can be combined with the compounds of the present disclosure for treatment of cancer and infections include an FGFR inhibitor (FGFR1, FGFR2, FGFR3 or FGFR4, e.g., INCB54828, INCB62079 and INCB63904), a JAK inhibitor (JAK1 and/or JAK2, e.g., ruxolitinib, baricitinib or INCB39110), an IDO inhibitor (e.g., epacadostat and NLG919), an LSD1 inhibitor (e.g., INCB59872 and INCB60003), a TDO inhibitor, a PI3K-delta inhibitor (e.g., INCB50797 and INCB50465), a PI3K-gamma inhibitor such as a PI3K-gamma selective inhibitor, a Pim inhibitor, a CSF1R inhibitor, a TAM receptor tyrosine kinases (Tyro-3, Axl, and Mer), an angiogenesis inhibitor, an interleukin receptor inhibitor, bromo and extra terminal family members inhibitors (for example, bromodomain inhibitors or BET inhibitors such as INCB54329 and INCB57643) and an adenosine receptor antagonist or combinations thereof.

Compounds of the present disclosure can be used in combination with one or more immune checkpoint inhibitors. Exemplary immune checkpoint inhibitors include inhibitors against immune checkpoint molecules such as CD27, CD28, CD40, CD122, CD96, CD73, CD47, OX40, GITR, CSF1R, JAK, PI3K delta, PI3K gamma, TAM, arginase, CD137 (also known as 4-1BB), ICOS, A2AR, B7-H3, B7-H4, BTLA, CTLA-4, LAG3, TIM3, VISTA, PD-1, PD-L1 and PD-L2. In some embodiments, the immune checkpoint molecule is a stimulatory checkpoint molecule selected from CD27, CD28, CD40, ICOS, OX40, GITR and CD137. In some embodiments, the immune checkpoint molecule is an inhibitory checkpoint molecule selected from A2AR, B7-H3, B7-H4, BTLA, CTLA-4, IDO, KIR, LAG3, PD-1, TIM3, and VISTA. In some embodiments, the compounds provided herein can be used in combination with one or more agents selected from KIR inhibitors, TIGIT inhibitors, LAIR1 inhibitors, CD160 inhibitors, 2B4 inhibitors and TGFR beta inhibitors.

In some embodiments, the inhibitor of an immune checkpoint molecule is anti-PD1 antibody, anti-PD-L1 antibody, or anti-CTLA-4 antibody.

In some embodiments, the inhibitor of an immune checkpoint molecule is an inhibitor of PD-1, e.g., an anti-PD-1 monoclonal antibody. In some embodiments, the anti-PD-1 monoclonal antibody is nivolumab, pembrolizumab (also known as MK-3475), pidilizumab, SHR-1210, PDR001, or AMP-224. In some embodiments, the anti-PD-1 monoclonal antibody is nivolumab or pembrolizumab. In some embodiments, the anti-PD1 antibody is pembrolizumab. In some embodiments, the anti PD-1 antibody is SHR-1210.

In some embodiments, the inhibitor of an immune checkpoint molecule is an inhibitor of PD-L1, e.g., an anti-PD-L1 monoclonal antibody. In some embodiments, the anti-PD-L1 monoclonal antibody is BMS-935559, MEDI4736, MPDL3280A (also known as RG7446), or MSB0010718C. In some embodiments, the anti-PD-L1 monoclonal antibody is MPDL3280A or MEDI4736.

In some embodiments, the inhibitor of an immune checkpoint molecule is an inhibitor of CTLA-4, e.g., an anti-CTLA-4 antibody. In some embodiments, the anti-CTLA-4 antibody is ipilimumab.

In some embodiments, the inhibitor of an immune checkpoint molecule is an inhibitor of LAG3, e.g., an anti-LAG3 antibody. In some embodiments, the anti-LAG3 antibody is BMS-986016 or LAG525.

In some embodiments, the inhibitor of an immune checkpoint molecule is an inhibitor of GITR, e.g., an anti-GITR antibody. In some embodiments, the anti-GITR antibody is TRX518 or MK-4166.

In some embodiments, the inhibitor of an immune checkpoint molecule is an inhibitor of OX40, e.g., an anti-OX40 antibody or OX40L fusion protein. In some embodiments, the anti-OX40 antibody is MEDI0562. In some embodiments, the OX40L fusion protein is MEDI6383.

Compounds of the present disclosure can be used in combination with one or more agents for the treatment of diseases such as cancer. In some embodiments, the agent is an alkylating agent, a proteasome inhibitor, a corticosteroid, or an immunomodulatory agent. Examples of an alkylating agent include cyclophosphamide (CY), melphalan (MEL), and bendamustine. In some embodiments, the proteasome inhibitor is carfilzomib. In some embodiments, the corticosteroid is dexamethasone (DEX). In some embodiments, the immunomodulatory agent is lenalidomide (LEN) or pomalidomide (POM).

The compounds of the present disclosure can further be used in combination with other methods of treating cancers, for example by chemotherapy, irradiation therapy, tumor-targeted therapy, adjuvant therapy, immunotherapy or surgery. Examples of immunotherapy include cytokine treatment (e.g., interferons, GM-CSF, G-CSF, IL-2), CRS-207 immunotherapy, cancer vaccine, monoclonal antibody, adoptive T cell transfer, oncolytic virotherapy and immunomodulating small molecules, including thalidomide or JAK1/2 inhibitor and the like. The compounds can be administered in combination with one or more anti-cancer drugs, such as a chemotherapeutics. Example chemotherapeutics include any of: abarelix, aldesleukin, alemtuzumab, alitretinoin, allopurinol, altretamine, anastrozole, arsenic trioxide, asparaginase, azacitidine, bevacizumab, bexarotene, baricitinib, bleomycin, bortezombi, bortezomib, busulfan intravenous, busulfan oral, calusterone, capecitabine, carboplatin, carmustine, cetuximab, chlorambucil, cisplatin, cladribine, clofarabine, cyclophosphamide, cytarabine, dacarbazine, dactinomycin, dalteparin sodium, dasatinib, daunorubicin, decitabine, denileukin, denileukin diftitox, dexrazoxane, docetaxel, doxorubicin, dromostanolone propionate, eculizumab, epirubicin, erlotinib, estramustine, etoposide phosphate, etoposide, exemestane, fentanyl citrate, filgrastim, floxuridine, fludarabine, fluorouracil, fulvestrant, gefitinib, gemcitabine, gemtuzumab ozogamicin, goserelin acetate, histrelin acetate, ibritumomab tiuxetan, idarubicin, ifosfamide, imatinib mesylate, interferon alfa 2a, irinotecan, lapatinib ditosylate, lenalidomide, letrozole, leucovorin, leuprolide acetate, levamisole, lomustine, meclorethamine, megestrol acetate, melphalan, mercaptopurine, methotrexate, methoxsalen, mitomycin C, mitotane, mitoxantrone, nandrolone phenpropionate, nelarabine, nofetumomab, oxaliplatin, paclitaxel, pamidronate, panitumumab, pegaspargase, pegfilgrastim, pemetrexed disodium, pentostatin, pipobroman, plicamycin, procarbazine, quinacrine, rasburicase, rituximab, ruxolitinib, sorafenib, streptozocin, sunitinib, sunitinib maleate, tamoxifen, temozolomide, teniposide, testolactone, thalidomide, thioguanine, thiotepa, topotecan, toremifene, tositumomab, trastuzumab, tretinoin, uracil mustard, valrubicin, vinblastine, vincristine, vinorelbine, vorinostat and zoledronate.

Other anti-cancer agent(s) include antibody therapeutics such as trastuzumab (Herceptin), antibodies to costimulatory molecules such as CTLA-4 (e.g., ipilimumab), 4-1BB, antibodies to PD-1 and PD-L1, or antibodies to cytokines (IL-10, TGF-3, etc.). Examples of antibodies to PD-1 and/or PD-L1 that can be combined with compounds of the present disclosure for the treatment of cancer or infections such as viral, bacteria, fungus and parasite infections include, but are not limited to, nivolumab, pembrolizumab, MPDL3280A, MEDI-4736 and SHR-1210.

The compounds of the present disclosure can further be used in combination with one or more anti-inflammatory agents, steroids, immunosuppressants or therapeutic antibodies.

The compounds of Formula (I) or any of the formulas as described herein, a compound as recited in any of the claims and described herein, or salts thereof can be combined with another immunogenic agent, such as cancerous cells, purified tumor antigens (including recombinant proteins, peptides, and carbohydrate molecules), cells, and cells transfected with genes encoding immune stimulating cytokines. Non-limiting examples of tumor vaccines that can be used include peptides of melanoma antigens, such as peptides of gp100, MAGE antigens, Trp-2, MARTI and/or tyrosinase, or tumor cells transfected to express the cytokine GM-CSF.

The compounds of Formula (I) or any of the formulas as described herein, a compound as recited in any of the claims and described herein, or salts thereof can be used in combination with a vaccination protocol for the treatment of cancer. In some embodiments, the tumor cells are transduced to express GM-CSF. In some embodiments, tumor vaccines include the proteins from viruses implicated in human cancers such as Human Papilloma Viruses (HPV), Hepatitis Viruses (HBV and HCV) and Kaposi's Herpes Sarcoma Virus (KHSV). In some embodiments, the compounds of the present disclosure can be used in combination with tumor specific antigen such as heat shock proteins isolated from tumor tissue itself. In some embodiments, the compounds of Formula (I) or any of the formulas as described herein, a compound as recited in any of the claims and described herein, or salts thereof can be combined with dendritic cells immunization to activate potent anti-tumor responses.

The compounds of the present disclosure can be used in combination with bispecific macrocyclic peptides that target Fe alpha or Fe gamma receptor-expressing effectors cells to tumor cells. The compounds of the present disclosure can also be combined with macrocyclic peptides that activate host immune responsiveness.

The compounds of the present disclosure can be used in combination with bone marrow transplant for the treatment of a variety of tumors of hematopoietic origin.

The compounds of Formula (I) or any of the formulas as described herein, a compound as recited in any of the claims and described herein, or salts thereof can be used in combination with vaccines, to stimulate the immune response to pathogens, toxins, and self antigens. Examples of pathogens for which this therapeutic approach may be particularly useful, include pathogens for which there is currently no effective vaccine, or pathogens for which conventional vaccines are less than completely effective. These include, but are not limited to, HIV, Hepatitis (A, B, & C), Influenza, Herpes, Giardia, Malaria, Leishmania, Staphylococcus aureus, Pseudomonas Aeruginosa.

Viruses causing infections treatable by methods of the present disclosure include, but are not limit to human papillomavirus, influenza, hepatitis A, B, C or D viruses, adenovirus, poxvirus, herpes simplex viruses, human cytomegalovirus, severe acute respiratory syndrome virus, ebola virus, measles virus, herpes virus (e.g., VZV, HSV-1, HAV-6, HSV-II, and CMV, Epstein Barr virus), flaviviruses, echovirus, rhinovirus, coxsackie virus, comovirus, respiratory syncytial virus, mumpsvirus, rotavirus, measles virus, rubella virus, parvovirus, vaccinia virus, HTLV virus, dengue virus, papillomavirus, molluscum virus, poliovirus, rabies virus, JC virus and arboviral encephalitis virus.

Pathogenic bacteria causing infections treatable by methods of the disclosure include, but are not limited to, chlamydia, rickettsial bacteria, mycobacteria, staphylococci, streptococci, pneumonococci, meningococci and conococci, klebsiella, proteus, serratia, pseudomonas, legionella, diphtheria, salmonella, bacilli, cholera, tetanus, botulism, anthrax, plague, leptospirosis, and Lyme's disease bacteria.

Pathogenic fungi causing infections treatable by methods of the disclosure include, but are not limited to, Candida (albicans, krusei, glabrata, tropicalis, etc.), Cryptococcus neoformans, Aspergillus (fumigatus, niger, etc.), Genus Mucorales (mucor, absidia, rhizophus), Sporothrix schenkii, Blastomyces dermatitidis, Paracoccidioides brasiliensis, Coccidioides immitis and Histoplasma capsulatum.

Pathogenic parasites causing infections treatable by methods of the disclosure include, but are not limited to, Entamoeba histolytica, Balantidium coli, Naegleriafowleri, Acanthamoeba sp., Giardia lambia, Cryptosporidium sp., Pneumocystis carinii, Plasmodium vivax, Babesia microti, Trypanosoma brucei, Trypanosoma cruzi, Leishmania donovani, Toxoplasma gondi, and Nippostrongylus brasiliensis.

When more than one pharmaceutical agent is administered to a patient, they can be administered simultaneously, separately, sequentially, or in combination (e.g., for more than two agents).

IV. Formulation, Dosage Forms and Administration

When employed as pharmaceuticals, the compounds of the present disclosure can be administered in the form of pharmaceutical compositions. Thus the present disclosure provides a composition comprising a compound of Formula (I) or any of the formulas as described herein, a compound as recited in any of the claims and described herein, or a pharmaceutically acceptable salt thereof, or any of the embodiments thereof, and at least one pharmaceutically acceptable carrier or excipient. These compositions can be prepared in a manner well known in the pharmaceutical art, and can be administered by a variety of routes, depending upon whether local or systemic treatment is indicated and upon the area to be treated. Administration may be topical (including transdermal, epidermal, ophthalmic and to mucous membranes including intranasal, vaginal and rectal delivery), pulmonary (e.g., by inhalation or insufflation of powders or aerosols, including by nebulizer; intratracheal or intranasal), oral or parenteral. Parenteral administration includes intravenous, intraarterial, subcutaneous, intraperitoneal intramuscular or injection or infusion; or intracranial, e.g., intrathecal or intraventricular, administration. Parenteral administration can be in the form of a single bolus dose, or may be, e.g., by a continuous perfusion pump. Pharmaceutical compositions and formulations for topical administration may include transdermal patches, ointments, lotions, creams, gels, drops, suppositories, sprays, liquids and powders. Conventional pharmaceutical carriers, aqueous, powder or oily bases, thickeners and the like may be necessary or desirable.

This invention also includes pharmaceutical compositions which contain, as the active ingredient, the compound of the present disclosure or a pharmaceutically acceptable salt thereof, in combination with one or more pharmaceutically acceptable carriers or excipients. In some embodiments, the composition is suitable for topical administration. In making the compositions of the invention, the active ingredient is typically mixed with an excipient, diluted by an excipient or enclosed within such a carrier in the form of, e.g., a capsule, sachet, paper, or other container. When the excipient serves as a diluent, it can be a solid, semi-solid, or liquid material, which acts as a vehicle, carrier or medium for the active ingredient. Thus, the compositions can be in the form of tablets, pills, powders, lozenges, sachets, cachets, elixirs, suspensions, emulsions, solutions, syrups, aerosols (as a solid or in a liquid medium), ointments containing, e.g., up to 10% by weight of the active compound, soft and hard gelatin capsules, suppositories, sterile injectable solutions and sterile packaged powders.

In preparing a formulation, the active compound can be milled to provide the appropriate particle size prior to combining with the other ingredients. If the active compound is substantially insoluble, it can be milled to a particle size of less than 200 mesh. If the active compound is substantially water soluble, the particle size can be adjusted by milling to provide a substantially uniform distribution in the formulation, e.g., about 40 mesh.

The compounds of the invention may be milled using known milling procedures such as wet milling to obtain a particle size appropriate for tablet formation and for other formulation types. Finely divided (nanoparticulate) preparations of the compounds of the invention can be prepared by processes known in the art see, e.g., WO 2002/000196.

Some examples of suitable excipients include lactose, dextrose, sucrose, sorbitol, mannitol, starches, gum acacia, calcium phosphate, alginates, tragacanth, gelatin, calcium silicate, microcrystalline cellulose, polyvinylpyrrolidone, cellulose, water, syrup and methyl cellulose. The formulations can additionally include: lubricating agents such as talc, magnesium stearate and mineral oil; wetting agents; emulsifying and suspending agents; preserving agents such as methyl- and propylhydroxy-benzoates; sweetening agents; and flavoring agents. The compositions of the invention can be formulated so as to provide quick, sustained or delayed release of the active ingredient after administration to the patient by employing procedures known in the art.

In some embodiments, the pharmaceutical composition comprises silicified microcrystalline cellulose (SMCC) and at least one compound described herein, or a pharmaceutically acceptable salt thereof. In some embodiments, the silicified microcrystalline cellulose comprises about 98% microcrystalline cellulose and about 2% silicon dioxide w/w.

In some embodiments, the composition is a sustained release composition comprising at least one compound described herein, or a pharmaceutically acceptable salt thereof, and at least one pharmaceutically acceptable carrier or excipient. In some embodiments, the composition comprises at least one compound described herein, or a pharmaceutically acceptable salt thereof, and at least one component selected from microcrystalline cellulose, lactose monohydrate, hydroxypropyl methylcellulose and polyethylene oxide. In some embodiments, the composition comprises at least one compound described herein, or a pharmaceutically acceptable salt thereof, and microcrystalline cellulose, lactose monohydrate and hydroxypropyl methylcellulose. In some embodiments, the composition comprises at least one compound described herein, or a pharmaceutically acceptable salt thereof, and microcrystalline cellulose, lactose monohydrate and polyethylene oxide. In some embodiments, the composition further comprises magnesium stearate or silicon dioxide. In some embodiments, the microcrystalline cellulose is Avicel PH102™. In some embodiments, the lactose monohydrate is Fast-flo 316™. In some embodiments, the hydroxypropyl methylcellulose is hydroxypropyl methylcellulose 2208 K4M (e.g., Methocel K4 M Premier™) and/or hydroxypropyl methylcellulose 2208 K100LV (e.g., Methocel K00LV™). In some embodiments, the polyethylene oxide is polyethylene oxide WSR 1105 (e.g., Polyox WSR 1105™).

In some embodiments, a wet granulation process is used to produce the composition. In some embodiments, a dry granulation process is used to produce the composition.

The compositions can be formulated in a unit dosage form, each dosage containing from about 5 to about 1,000 mg (1 g), more usually about 100 mg to about 500 mg, of the active ingredient. In some embodiments, each dosage contains about 10 mg of the active ingredient. In some embodiments, each dosage contains about 50 mg of the active ingredient. In some embodiments, each dosage contains about 25 mg of the active ingredient. The term “unit dosage forms” refers to physically discrete units suitable as unitary dosages for human subjects and other mammals, each unit containing a predetermined quantity of active material calculated to produce the desired therapeutic effect, in association with a suitable pharmaceutical excipient.

The components used to formulate the pharmaceutical compositions are of high purity and are substantially free of potentially harmful contaminants (e.g., at least National Food grade, generally at least analytical grade, and more typically at least pharmaceutical grade). Particularly for human consumption, the composition is preferably manufactured or formulated under Good Manufacturing Practice standards as defined in the applicable regulations of the U.S. Food and Drug Administration. For example, suitable formulations may be sterile and/or substantially isotonic and/or in full compliance with all Good Manufacturing Practice regulations of the U.S. Food and Drug Administration.

The active compound may be effective over a wide dosage range and is generally administered in a therapeutically effective amount. It will be understood, however, that the amount of the compound actually administered will usually be determined by a physician, according to the relevant circumstances, including the condition to be treated, the chosen route of administration, the actual compound administered, the age, weight, and response of the individual patient, the severity of the patient's symptoms and the like.

The therapeutic dosage of a compound of the present invention can vary according to, e.g., the particular use for which the treatment is made, the manner of administration of the compound, the health and condition of the patient, and the judgment of the prescribing physician. The proportion or concentration of a compound of the invention in a pharmaceutical composition can vary depending upon a number of factors including dosage, chemical characteristics (e.g., hydrophobicity), and the route of administration. For example, the compounds of the invention can be provided in an aqueous physiological buffer solution containing about 0.1 to about 10% w/v of the compound for parenteral administration. Some typical dose ranges are from about 1 μg/kg to about 1 g/kg of body weight per day. In some embodiments, the dose range is from about 0.01 mg/kg to about 100 mg/kg of body weight per day. The dosage is likely to depend on such variables as the type and extent of progression of the disease or disorder, the overall health status of the particular patient, the relative biological efficacy of the compound selected, formulation of the excipient, and its route of administration. Effective doses can be extrapolated from dose-response curves derived from in vitro or animal model test systems.

For preparing solid compositions such as tablets, the principal active ingredient is mixed with a pharmaceutical excipient to form a solid preformulation composition containing a homogeneous mixture of a compound of the present invention. When referring to these preformulation compositions as homogeneous, the active ingredient is typically dispersed evenly throughout the composition so that the composition can be readily subdivided into equally effective unit dosage forms such as tablets, pills and capsules. This solid preformulation is then subdivided into unit dosage forms of the type described above containing from, e.g., about 0.1 to about 1000 mg of the active ingredient of the present invention.

The tablets or pills of the present invention can be coated or otherwise compounded to provide a dosage form affording the advantage of prolonged action. For example, the tablet or pill can comprise an inner dosage and an outer dosage component, the latter being in the form of an envelope over the former. The two components can be separated by an enteric layer which serves to resist disintegration in the stomach and permit the inner component to pass intact into the duodenum or to be delayed in release. A variety of materials can be used for such enteric layers or coatings, such materials including a number of polymeric acids and mixtures of polymeric acids with such materials as shellac, cetyl alcohol and cellulose acetate.

The liquid forms in which the compounds and compositions of the present invention can be incorporated for administration orally or by injection include aqueous solutions, suitably flavored syrups, aqueous or oil suspensions, and flavored emulsions with edible oils such as cottonseed oil, sesame oil, coconut oil, or peanut oil, as well as elixirs and similar pharmaceutical vehicles.

Compositions for inhalation or insufflation include solutions and suspensions in pharmaceutically acceptable, aqueous or organic solvents, or mixtures thereof, and powders. The liquid or solid compositions may contain suitable pharmaceutically acceptable excipients as described supra. In some embodiments, the compositions are administered by the oral or nasal respiratory route for local or systemic effect. Compositions can be nebulized by use of inert gases. Nebulized solutions may be breathed directly from the nebulizing device or the nebulizing device can be attached to a face mask, tent, or intermittent positive pressure breathing machine. Solution, suspension, or powder compositions can be administered orally or nasally from devices which deliver the formulation in an appropriate manner.

Topical formulations can contain one or more conventional carriers. In some embodiments, ointments can contain water and one or more hydrophobic carriers selected from, e.g., liquid paraffin, polyoxyethylene alkyl ether, propylene glycol, white Vaseline, and the like. Carrier compositions of creams can be based on water in combination with glycerol and one or more other components, e.g., glycerinemonostearate, PEG-glycerinemonostearate and cetylstearyl alcohol. Gels can be formulated using isopropyl alcohol and water, suitably in combination with other components such as, e.g., glycerol, hydroxyethyl cellulose, and the like. In some embodiments, topical formulations contain at least about 0.1, at least about 0.25, at least about 0.5, at least about 1, at least about 2 or at least about 5 wt % of the compound of the invention. The topical formulations can be suitably packaged in tubes of, e.g., 100 g which are optionally associated with instructions for the treatment of the select indication, e.g., psoriasis or other skin condition.

The amount of compound or composition administered to a patient will vary depending upon what is being administered, the purpose of the administration, such as prophylaxis or therapy, the state of the patient, the manner of administration and the like. In therapeutic applications, compositions can be administered to a patient already suffering from a disease in an amount sufficient to cure or at least partially arrest the symptoms of the disease and its complications. Effective doses will depend on the disease condition being treated as well as by the judgment of the attending clinician depending upon factors such as the severity of the disease, the age, weight and general condition of the patient and the like.

The compositions administered to a patient can be in the form of pharmaceutical compositions described above. These compositions can be sterilized by conventional sterilization techniques, or may be sterile filtered. Aqueous solutions can be packaged for use as is, or lyophilized, the lyophilized preparation being combined with a sterile aqueous carrier prior to administration. The pH of the compound preparations typically will be between 3 and 11, more preferably from 5 to 9 and most preferably from 7 to 8. It will be understood that use of certain of the foregoing excipients, carriers or stabilizers will result in the formation of pharmaceutical salts.

The therapeutic dosage of a compound of the present invention can vary according to, e.g., the particular use for which the treatment is made, the manner of administration of the compound, the health and condition of the patient, and the judgment of the prescribing physician. The proportion or concentration of a compound of the invention in a pharmaceutical composition can vary depending upon a number of factors including dosage, chemical characteristics (e.g., hydrophobicity), and the route of administration. For example, the compounds of the invention can be provided in an aqueous physiological buffer solution containing about 0.1 to about 10% w/v of the compound for parenteral administration. Some typical dose ranges are from about 1 μg/kg to about 1 g/kg of body weight per day. In some embodiments, the dose range is from about 0.01 mg/kg to about 100 mg/kg of body weight per day. The dosage is likely to depend on such variables as the type and extent of progression of the disease or disorder, the overall health status of the particular patient, the relative biological efficacy of the compound selected, formulation of the excipient, and its route of administration. Effective doses can be extrapolated from dose-response curves derived from in vitro or animal model test systems.

V. Labeled Compounds and Assay Methods

The compounds of the present disclosure can further be useful in investigations of biological processes in normal and abnormal tissues. Thus, another aspect of the present invention relates to labeled compounds of the invention (radio-labeled, fluorescent-labeled, etc.) that would be useful not only in imaging techniques but also in assays, both in vitro and in vivo, for localizing and quantitating PD-1 or PD-L1 protein in tissue samples, including human, and for identifying PD-L1 ligands by inhibition binding of a labeled compound. Accordingly, the present invention includes PD-1/PD-L1 binding assays that contain such labeled compounds.

The present invention further includes isotopically-substituted compounds of the disclosure. An “isotopically-substituted” compound is a compound of the invention where one or more atoms are replaced or substituted by an atom having an atomic mass or mass number different from the atomic mass or mass number typically found in nature (i.e., naturally occurring). It is to be understood that a “radio-labeled” is a compound that has incorporated at least one isotope that is radioactive (e.g., radionuclide). Suitable radionuclides that may be incorporated in compounds of the present invention include but are not limited to ³H (also written as T for tritium), ¹¹C, ¹³C, ¹⁴C, ¹³N, ¹⁵N, ¹⁵O, ¹⁷O, ¹⁸O, ¹⁸F, ³⁵S, ³⁶Cl, ⁸²Br, ⁷⁵Br, ⁷⁶Br, ⁷⁷Br, ¹²³I, ¹²⁴I, ¹²⁵I and ¹³¹I. The radionuclide that is incorporated in the instant radio-labeled compounds will depend on the specific application of that radio-labeled compound. For example, for in vitro PD-L1 protein labeling and competition assays, compounds that incorporate ³H, ¹⁴C, ⁸²Br, ¹²⁵I, ¹³¹I, ³⁵S or will generally be most useful. For radio-imaging applications C, ¹⁸F, ¹²⁵I, ¹²³I, ¹²⁴I, ¹³¹I, ⁷⁵Br, ⁷⁶Br or ⁷⁷Br will generally be most useful. In some embodiments the radionuclide is selected from the group consisting of ³H, ¹⁴C, ¹²⁵I, ³⁵S and ⁸²Br. Synthetic methods for incorporating radio-isotopes into organic compounds are known in the art.

Specifically, a labeled compound of the invention can be used in a screening assay to identify and/or evaluate compounds. For example, a newly synthesized or identified compound (i.e., test compound) which is labeled can be evaluated for its ability to bind a PD-L1 protein by monitoring its concentration variation when contacting with the PD-L1 protein, through tracking of the labeling. For example, a test compound (labeled) can be evaluated for its ability to reduce binding of another compound which is known to bind to a PD-L1 protein (i.e., standard compound). Accordingly, the ability of a test compound to compete with the standard compound for binding to the PD-L1 protein directly correlates to its binding affinity. Conversely, in some other screening assays, the standard compound is labeled and test compounds are unlabeled. Accordingly, the concentration of the labeled standard compound is monitored in order to evaluate the competition between the standard compound and the test compound, and the relative binding affinity of the test compound is thus ascertained.

VI. Kits

The present disclosure also includes pharmaceutical kits useful, e.g., in the treatment or prevention of diseases or disorders associated with the activity of PD-L1 including its interaction with other proteins such as PD-1 and B7-1 (CD80), such as cancer or infections, which include one or more containers containing a pharmaceutical composition comprising a therapeutically effective amount of a compound of Formula (I), or any of the embodiments thereof. Such kits can further include one or more of various conventional pharmaceutical kit components, such as, e.g., containers with one or more pharmaceutically acceptable carriers, additional containers, etc., as will be readily apparent to those skilled in the art. Instructions, either as inserts or as labels, indicating quantities of the components to be administered, guidelines for administration, and/or guidelines for mixing the components, can also be included in the kit.

The invention will be described in greater detail by way of specific examples. The following examples are offered for illustrative purposes, and are not intended to limit the invention in any manner. Those of skill in the art will readily recognize a variety of non-critical parameters which can be changed or modified to yield essentially the same results. The compounds of the Examples have been found to inhibit the activity of PD-1/PD-L1 protein/protein interaction according to at least one assay described herein.

EXAMPLES

Experimental procedures for compounds of the invention are provided below. Open Access Preparative LCMS Purification of some of the compounds prepared was performed on Waters mass directed fractionation systems. The basic equipment setup, protocols and control software for the operation of these systems have been described in detail in literature. See, e.g., Blom, “Two-Pump At Column Dilution Configuration for Preparative LC-MS”, K. Blom, J. Combi. Chem., 2002, 4, 295-301; Blom et al., “Optimizing Preparative LC-MS Configurations and Methods for Parallel Synthesis Purification”, J. Combi. Chem., 2003, 5, 670-83; and Blom et al., “Preparative LC-MS Purification: Improved Compound Specific Method Optimization”, J. Combi. Chem., 2004, 6, 874-883.

Example 1 N-[2-cyano-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

Step 1: 2-amino-6-(2,3-dihydro-1,4-benzodioxin-6-yl)benzonitrile

A mixture of 2-amino-6-bromobenzonitrile (1.5 g, 7.6 mmol) (ArkPharm, cat#AK-36350), 2,3-dihydro-1,4-benzodioxin-6-ylboronic acid (1.4 g, 7.6 mmol) (Combi-Blocks, cat#BB-8311), [1,1′-bis(diphenylphosphino)ferrocene]dichloropalladium(II) complex with dichloromethane (1:1) (0.3 g, 0.4 mmol), Na₂CO₃ (2.4 g, 22.8 mmol) in 1,4-dioxane (30.0 mL) and water (4.0 mL) was purged with nitrogen. The reaction mixture was heated to 100° C. for 4 h under vigorous stirring. After being cooled to room temperature, the reaction was quenched with saturated aqueous NaHCO₃ solution, and extracted with ethyl acetate. The combined organic layers were washed with brine, dried over Na₂SO₄, filtered, and concentrated under reduced pressure. The residue was purified by flash chromatography on a silica gel column eluting with 50% ethyl acetate in hexanes to afford the desired product (1.7 g, 88%). LCMS calculated for C₁₅H₁₃N₂O₂ (M+H)⁺: m/z=253.1; found 253.1.

Step 2: tert-butyl 2-({[2-cyano-3-(2, 3-dihydro-1, 4-benzodioxin-6-yl)phenyl]amino}carbonyl)-6, 7-dihydro[1, 3]thiazolo[5, 4-c]pyridine-5(4H)-carboxylate

2-Amino-6-(2,3-dihydro-1,4-benzodioxin-6-yl)benzonitrile (31 mg, 0.12 mmol) from Step 1 was added to a solution of 5-(tert-butoxycarbonyl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxylic acid (30 mg, 0.10 mmol) (J&WPharmlab, cat#90R0423), N,N,N′,N′-tetramethyl-O-(7-azabenzotriazol-1-yl)uronium hexafluorophosphate (60 mg, 0.16 mmol) and N,N-diisopropylethylamine (55 μL, 0.32 mmol) in DMF (1.0 mL). The reaction mixture was stirred at room temperature for 24 h. The reaction was quenched with saturated aqueous NaHCO₃ solution, and extracted with ethyl acetate. The combined organic layers were washed with brine, dried over Na₂SO₄, filtered, and concentrated under reduced pressure. The crude product was used for next step without further purification. LCMS calculated for C₂₇H₂₇N₄O₅S (M+H)⁺: m/z=519.2; found 519.2.

Step 3: N-[2-cyano-3-(2, 3-dihydro-1, 4-benzodioxin-6-yl)phenyl]-4, 5, 6, 7-tetrahydro[1, 3]thiazolo-[5, 4-c]pyridine-2-carboxamide

The crude product from Step 2 was dissolved in methanol (0.5 mL), and then treated with 4.0 M hydrogen chloride in 1,4-dioxane (0.5 mL). After being stirred at 50° C. for 2 h, the reaction mixture was concentrated and purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LCMS calculated for C₂₂H₁₉N₄O₃S (M+H)⁺: m/z=419.1; found 419.2.

Example 2 N-(2-cyanobiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

Step 1: tert-butyl 2-{[(3-bromo-2-cyanophenyl)amino]carbonyl}-6, 7-dihydro[1, 3]thiazolo[5, 4-c]pyridine-5(4H)-carboxylate

Potassium tert-butoxide (0.15 g, 1.3 mmol) was added to a solution of 5-tert-butyl 2-ethyl 6,7-dihydro[1,3]thiazolo[5,4-c]pyridine-2,5(4H)-dicarboxylate (0.26 g, 0.88 mmol) (Aurum Pharmatech, cat#Z-3884), and 2-amino-6-bromobenzonitrile (0.17 g, 0.88 mmol) (Ark Pharm, cat#AK-36350) in tetrahydrofuran (4 mL). After being stirred at room temperature for 3 h, the reaction mixture was quenched with water, and extracted with ethyl acetate. The combined organic layers were washed with brine, dried over Na₂SO₄, filtered, and concentrated under reduced pressure. The crude product was used for next step without further purification. LCMS calculated for C₁₉H₂₀BrN₄O₃S (M+H)⁺: m/z=463.0; found 463.1.

Step 2: N-(3-bromo-2-cyanophenyl)-4, 5, 6, 7-tetrahydro[1, 3]thiazolo[5, 4-c]pyridine-2-carboxamide

The crude product from Step 1 was dissolved in methanol (2.0 mL), and then treated with 4.0 M hydrogen chloride in 1,4-dioxane (2.0 mL). After being stirred at 50° C. for 2 h, the reaction mixture was neutralized with saturated aqueous Na₂CO₃ solution, and extracted with ethyl acetate. The combined organic layers were washed with brine, dried over Na₂SO₄, filtered, and concentrated under reduced pressure. The residue was purified by flash chromatography on a silica gel column eluting with 5% methanol in dichloromethane to afford the desired product (0.20 g, 61% over 2 steps). LCMS calculated for C₁₄H₁₂BrN₄OS (M+H)⁺: m/z=363.0; found 363.1.

Step 3: N-(2-cyanobiphenyl-3-yl)-4, 5,6, 7-tetrahydro[1, 3]thiazolo[5, 4-c]pyridine-2-carboxamide

A mixture of N-(3-bromo-2-cyanophenyl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide (8.0 mg, 0.02 mmol) from Step 2, phenylboronic acid (5.3 mg, 0.04 mmol), dichloro[1,1′-bis(dicyclohexylphosphino)ferrocene]palladium(II) (0.7 mg, 0.001 mmol), and Na₂CO₃ (7.0 mg, 0.07 mmol) in tert-butyl alcohol (0.15 mL) and water (0.15 mL) was purged with nitrogen. The reaction mixture was heated to 100° C. for 2 h under vigorous stirring. After being cooled to room temperature, the mixture was diluted with methanol, and purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₀H₁₇N₄OS (M+H)⁺: m/z=361.1; found 361.2.

Example 3 N-[2-cyano-3-(1-methyl-1H-indazol-4-yl)phenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with 1-methyl-1H-indazole-4-boronic acid pinacol ester (Aldrich, Cat#:725323) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₂H₁₉N₆OS (M+H)⁺: m/z=415.1; found 415.2.

Example 4 N-(2-cyano-2′-fluorobiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with (2-fluorophenyl)boronic acid (Aldrich, Cat#:445223) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₀H₁₆FN₄OS (M+H)⁺: m/z=379.1; found 379.2.

Example 5 N-(2-cyano-2′-fluoro-3′-methoxybiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with (2-fluoro-3-methoxyphenyl)boronic acid (Combi-Blocks, Cat#:BB-2460) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₁₈FN₄O₂S (M+H)⁺: m/z=409.1; found 409.2.

Example 6 N-[2-cyano-3-(2,3-dihydro-1-benzofuran-6-yl)phenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with 2,3-dihydro-1-benzofuran-6-ylboronic acid (ArkPharm, Cat#:AK143637) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₂H₁₉N₄O₂S (M+H)⁺: m/z=403.1; found 403.2.

Example 7 N-(2-cyano-3-cyclohex-1-en-1-ylphenyl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with cyclohex-1-en-1-ylboronic acid pinacol ester (Aldrich, Cat#:650277) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₀H₂₁N₄OS (M+H)⁺: m/z=365.1; found 365.2.

Example 8 N-(2-cyano-3-cyclohexylphenyl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

A suspension of N-(2-cyano-3-cyclohex-1-en-1-ylphenyl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide (4.0 mg, 0.01 mmol) from Example 7 and 10% Pd/C (5.0 mg) in methanol (0.5 mL) was stirred under a hydrogen atmosphere (1 atm) at room temperature for 2 h. After the catalyst was filtered off, the filtrate was diluted with methanol, and purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₀H₂₃N₄OS (M+H)⁺: m/z=367.2; found 367.2.

Example 9 N-(2-cyano-2′,6′-difluorobiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

A mixture of N-(3-bromo-2-cyanophenyl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide (8.0 mg, 0.022 mmol) from Example 2, step 2, 2,6-difluorophenylboronic acid (6.2 mg, 0.026 mmol) (Aldrich, Cat#:470791), dicyclohexyl(2′,4′,6′-triisopropylbiphenyl-2-yl)phosphine-(2′-aminobiphenyl-2-yl)(chloro)palladium (1:1) (3.5 mg, 0.0044 mmol), and K₃PO₄ (12 mg, 0.055 mmol) in tetrahydrofuran (0.4 mL) and water (0.05 mL) was purged with nitrogen. The reaction mixture was stirred at room temperature for 2 h under vigorous stirring. After being cooled to room temperature, the mixture was diluted with methanol, and purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₀H₁₅F₂N₄OS (M+H)⁺: m/z=397.1; found 397.2.

Example 10 N-[2-cyano-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-4,5,6,7-tetrahydropyrazolo[1,5-a]pyrazine-2-carboxamide

This compound was prepared using similar procedures as described for Example 1 with 5-(tert-butoxycarbonyl)-4,5,6,7-tetrahydropyrazolo[1,5-a]pyrazine-2-carboxylic acid (AstaTech, Cat#: 74720) replacing 5-(tert-butoxycarbonyl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxylic acid in Step 2. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₂H₂₀N₅O₃ (M+H)⁺: m/z=402.2; found 402.2.

Example 11 N-[2-cyano-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-5-(2-hydroxyethyl)-4,5,6,7-tetrahydropyrazolo[1,5-a]pyrazine-2-carboxamide

A mixture of N-[2-cyano-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-4,5,6,7-tetrahydropyrazolo[1,5-a]pyrazine-2-carboxamide (5.0 mg, 0.01 mmol) from Example 10, 2-iodoethanol (6.4 mg, 0.04 mmol), and K₂CO₃ (8.6 mg, 0.06 mmol) in DMF (0.1 mL) was stirred at room temperature for 3 h. The reaction mixture was diluted with water, and extracted with ethyl acetate. The combined organic layers were washed with brine, dried over Na₂SO₄, filtered, and concentrated under reduced pressure. The residue was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₄H₂₄N₅O₄ (M+H)⁺: m/z=446.2; found 446.3.

Example 12 N-[2-cyano-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide

Step 1: tert-butyl 1-methyl-1,4,6, 7-tetrahydro-5H-imidazo[4,5-c]pyridine-5-carboxylate

A solution of 1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine (80 mg, 0.60 mmol) (Accela, Cat#:SY032476), di-tert-butyl dicarbonate (140 mg, 0.66 mmol) and triethylamine (0.10 mL, 0.72 mmol) in dichloromethane (4.0 mL) was stirred at room temperature for 1 h. The reaction was quenched with saturated aqueous NaHCO₃ solution, and extracted with ethyl acetate. The combined organic layers were washed with brine, dried over Na₂SO₄, filtered, and concentrated under reduced pressure. The crude product was used for next step without further purification. LCMS calculated for C₁₂H₂₀N₃O₂ (M+H)⁺: m/z=238.2; found 238.2.

Step 2: 5-tert-butyl 2-methyl 1-methyl-6, 7-dihydro-1H-imidazo[4,5-c]pyridine-2,5(4H)-dicarboxylate

n-Butyllithium in hexanes (2.5 M, 0.29 mL, 0.72 mmol) was added to a cold (−78° C.) solution of the crude product from Step 1 in tetrahydrofuran (3.0 mL). The reaction mixture was stirred at −78° C. for 30 min prior to the addition of methyl chloroformate (46 μL, 0.60 mmol). After being stirred at −78° C. for 1 h, the reaction mixture was allowed to warm up to room temperature. The reaction was then quenched with saturated aqueous NaHCO₃ solution, and extracted with ethyl acetate, dried over Na₂SO₄, filtered, and concentrated under reduced pressure. The crude product was used for next step without further purification. LCMS calculated for C₁₄H₂₂N₃O₄ (M+H)⁺: m/z=296.2; found 296.3.

Step 3: tert-butyl 2-({[2-cyano-3-(2, 3-dihydro-1, 4-benzodioxin-6-yl)phenyl]amino}carbonyl)-1-methyl-1, 4, 6, 7-tetrahydro-5H-imidazo[4, 5-c]pyridine-5-carboxylate

Potassium tert-butoxide (52 mg, 0.50 mmol) was added to a solution of the crude product from Step 2, and 2-amino-6-(2,3-dihydro-1,4-benzodioxin-6-yl)benzonitrile (25 mg, 0.10 mmol) from Example 1, step 1 in tetrahydrofuran (0.5 mL). After being stirred at room temperature for 3 h, the reaction mixture was quenched with water, and extracted with ethyl acetate. The combined organic layers were washed with brine, dried over Na₂SO₄, filtered, and concentrated under reduced pressure. The crude product was used for next step without further purification. LCMS calculated for C₂₈H₃₀N₅O₅ (M+H)⁺: m/z=516.2; found 516.2.

Step 4: N-[2-cyano-3-(2, 3-dihydro-1, 4-benzodioxin-6-yl)phenyl]-1-methyl-4, 5, 6, 7-tetrahydro-1H-imidazo[4, 5-c]pyridine-2-carboxamide

The crude product from Step 3 was dissolved in methanol (0.2 mL), and then treated with 4.0 M hydrogen chloride in 1,4-dioxane (0.2 mL). After being stirred at 50° C. for 2 h, the reaction was neutralized with saturated aqueous Na₂CO₃ solution, and extracted with ethyl acetate. The combined organic layers were washed with brine, dried over Na₂SO₄, filtered, and concentrated under reduced pressure. The residue was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₃H₂₂N₅O₃ (M+H)⁺: m/z=416.2; found 416.3.

Example 13 N-(2-cyano-3-(2,3-dihydrobenzo[b][1,4]dioxin-6-yl)phenyl)-5-(2-hydroxyethyl)-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 11, starting with N-[2-cyano-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide from Example 12. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₅H₂₆N₅O₄ (M+H)⁺: m/z=460.2; found 460.3.

Example 14 N-[2-cyano-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-5,6,7,8-tetrahydro[1,2,4]triazolo[1,5-a]pyrazine-2-carboxamide

This compound was prepared using similar procedures as described for Example 12 with 5,6,7,8-tetrahydro-[1,2,4]triazolo[1,5-a]pyrazine (Ark Pharm, Cat#:AK-25630) replacing 1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine in Step 1. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₁₉N₆O₃ (M+H)⁺: m/z=403.2; found 403.2.

Example 15 N-(2,3′-dicyano-2′-fluorobiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with (3-cyano-2-fluorophenyl)boronic acid (Combi-Blocks, Cat#:BB-5008) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₁₅FN₅OS (M+H)⁺: m/z=404.1; found 404.2.

Example 16 N-(2-cyano-3′-methoxybiphenyl-3-yl)-4,5,6,7-tetrahydrothiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with 3-methoxyphenylboronic acid (Aldrich, Cat#: 441686) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₁₉N₄O₂S (M+H)⁺: m/z=391.1; found 391.2.

Example 17 N-(2-cyano-3′-fluoro-5′-methoxybiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with (3-fluoro-5-methoxyphenyl)boronic acid (Combi-Blocks, Cat#:BB-2775) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₁₈FN₄O₂S (M+H)⁺: m/z=409.1; found 409.2.

Example 18 N-(2′-chloro-2-cyanobiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with (2-chlorophenyl)boronic acid (Aldrich, Cat#:445215) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₀H₁₆ClN₄OS (M+H)⁺: m/z=395.1; found 395.1.

Example 19 N-(2-cyano-2′-fluoro-3′-methoxybiphenyl-3-yl)-5,6,7,8-tetrahydroimidazo[1,2-a]pyrazine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with ethyl 5,6,7,8-tetrahydroimidazo[1,2-a]pyrazine-2-carboxylate (AstaTech, Cat#: SC2741) replacing 5-tert-butyl 2-ethyl 6,7-dihydro[1,3]thiazolo[5,4-c]pyridine-2,5(4H)-dicarboxylate in Step 1, and (2-fluoro-3-methoxyphenyl)boronic acid (Combi-Blocks, Cat#: BB-2460) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₁₉FN₅O₂(M+H)⁺: m/z=392.2; found 392.3.

Example 20 N-[3-(2,3-dihydro-1,4-benzodioxin-6-yl)-2-methylphenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

Step 1: 3-(2, 3-dihydrobenzo[b][1, 4]dioxin-6-yl)-2-methylaniline

This compound was prepared using similar procedures as described for Example 1, step 1, starting with 3-bromo-2-methylaniline (460 mg, 2.5 mmol) (Combi-Blocks, Cat#:AN-1321). The residue was purified by flash chromatography on a silica gel column eluting with 30% ethyl acetate in hexanes to afford the desired product (502 mg, 83%). LCMS calculated for C₁₅H₁₆NO₂ (M+H)⁺: m/z=242.1; found 242.2.

Step 2: tert-butyl 2-(3-(2, 3-dihydrobenzo[b][1, 4]dioxin-6-yl)-2-methylphenylcarbamoyl)-6, 7-dihydrothiazolo[5, 4-c]pyridine-5(4H)-carboxylate

This compound was prepared using similar procedures as described for Example 2, step 1 with 3-(2,3-dihydrobenzo[b][1,4]dioxin-6-yl)-2-methylaniline from Step 1 replacing 2-amino-6-bromobenzonitrile. The crude product was used for next step without further purification. LCMS calculated for C₂₇H₃₀N₃O₅S (M+H)⁺: m/z=508.2; found 508.2.

Step 3: N-[3-(2, 3-dihydro-1, 4-benzodioxin-6-yl)-2-methylphenyl]-4, 5, 6, 7-tetrahydro[1, 3]thiazolo[5, 4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2, Step 2, starting with tert-butyl 2-(3-(2,3-dihydrobenzo[b][1,4]dioxin-6-yl)-2-methylphenylcarbamoyl)-6,7-dihydrothiazolo[5,4-c]pyridine-5(4H)-carboxylate from Step 2. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₂H₂₂N₃O₃S (M+H)⁺: m/z=408.1; found 408.2.

Example 21 N-(2′-fluoro-3′-methoxy-2-methylbiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with 3-bromo-2-methylaniline replacing 2-amino-6-bromobenzonitrile in Step 1, and (2-fluoro-3-methoxyphenyl)boronic acid replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₂₁FN₃O₂S (M+H)⁺: m/z=398.1; found 398.2.

Example 22 N-(2′-fluoro-3′-methoxy-2-methylbiphenyl-3-yl)-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 12, starting with 2′-fluoro-3′-methoxy-2-methylbiphenyl-3-amine, prepared using similar procedures for the synthesis of 2-amino-6-(2,3-dihydro-1,4-benzodioxin-6-yl)benzonitrile in Example 1, Step 1. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₂H₂₄FN₄O₂(M+H)⁺: m/z=395.2; found 395.3.

Example 23 N-[2-methyl-3-(1-methyl-1H-indazol-4-yl)phenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with 3-bromo-2-methylaniline replacing 2-amino-6-bromobenzonitrile in Step 1, and (1-methyl-1H-indazol-4-yl)boronic acid (Combi-Blocks; cat#BB-9017) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₂H₂₂N₅OS (M+H)⁺: m/z=404.2; found 404.3.

Example 24 N-[2′-fluoro-3′-(hydroxymethyl)-2-methylbiphenyl-3-yl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with 3-bromo-2-methylaniline replacing 2-amino-6-bromobenzonitrile in Step 1, and [2-fluoro-3-(hydroxymethyl)phenyl]boronic acid (Combi-Blocks, Cat#: BB-6579) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₂₁FN₃O₂S (M+H)⁺: m/z=398.1; found 398.2.

Example 25 N-[3-(1H-indazol-4-yl)-2-methylphenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with 3-bromo-2-methylaniline replacing 2-amino-6-bromobenzonitrile in Step 1, and indazole-4-boronic acid hydrochloride (Aldrich, Cat#: 709379) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₂₀N₅OS (M+H)⁺: m/z=390.1; found 390.2.

Example 26 N-(2-methylbiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with 3-bromo-2-methylaniline replacing 2-amino-6-bromobenzonitrile in Step 1. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₀H₂₀N₃OS (M+H)⁺: m/z=350.1; found 350.2.

Example 27 5-(2-hydroxyethyl)-N-(2-methylbiphenyl-3-yl)-4,5,6,7-tetrahydrothiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 11, starting with N-(2-methylbiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide from Example 26. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₂H₂₄N₃O₂S (M+H)⁺: m/z=394.2; found 394.2.

Example 28 2-(2-(2-methylbiphenyl-3-ylcarbamoyl)-6,7-dihydrothiazolo[5,4-c]pyridin-5(4H)-yl)acetic acid

Glyoxalic acid monohydrate (9.9 mg, 0.11 mmol) was added to a solution of N-(2-methylbiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide (17 mg, 0.05 mmol) from Example 26, and N,N-diisopropylethylamine (19 μL, 0.11 mmol) in dichloromethane (0.5 mL). After being stirred at room temperature for 15 min, sodium triacetoxyborohydride (33 mg, 0.15 mmol) was added. The reaction mixture was stirred at room temperature for 2 h. The solvent was removed under reduced pressure, and the residue was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₂H₂₂N₃O₃S (M+H)⁺: m/z=408.1; found 408.2.

Example 29 N-[2-methyl-3-(2-methyl-2H-indazol-6-yl)phenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with 3-bromo-2-methylaniline replacing 2-amino-6-bromobenzonitrile in Step 1, and 2-methyl-2H-indazol-6-ylboronic acid pinacol ester (Combi-Blocks, Cat#:PN-9131) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₂H₂₂N₅OS (M+H)⁺: m/z=404.2; found 404.2.

Example 30 N-(2′-cyano-2-methylbiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with 3-bromo-2-methylaniline replacing 2-amino-6-bromobenzonitrile in Step 1, and 2-cyanophenylboronic acid (Aldrich, Cat#:521396) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₁₉N₄OS (M+H)⁺: m/z=375.1; found 375.2.

Example 31 N-[2′-(cyanomethyl)-2-methylbiphenyl-3-yl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2 with 3-bromo-2-methylaniline replacing 2-amino-6-bromobenzonitrile in Step 1, and 2-(cyanomethyl)phenylboronic acid (Combi-Blocks, Cat#:BB-2136) replacing phenylboronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₂H₂₁N₄OS (M+H)⁺: m/z=389.1; found 389.2.

Example 32 N-(2-chloro-2′-fluoro-3′-methoxybiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

Step 1: tert-butyl 2-(3-bromo-2-chlorophenylcarbamoyl)-6, 7-dihydrothiazolo[5, 4-c]pyridine-5(4H)-carboxylate

This compound was prepared using similar procedures as described for Example 2, Step 1, starting with 3-bromo-2-chloroaniline (206 mg, 0.10 mmol) (AstaTech, Cat#: CL9068) and 5-tert-butyl 2-ethyl 6,7-dihydro[1,3]thiazolo[5,4-c]pyridine-2,5 (4H)-dicarboxylate (312 mg, 0.10 mmol). The crude product was used for next step without further purification. LCMS calculated for C₁₈H₂₀BrClN₃O₃S (M+H)⁺: m/z=472.0; found 472.0.

Step 2: N-(3-bromo-2-chlorophenyl)-4,5,6, 7-tetrahydrothiazolo[5, 4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 2, Step 2, starting with tert-butyl 2-(3-bromo-2-chlorophenylcarbamoyl)-6,7-dihydrothiazolo[5,4-c]pyridine-5(4H)-carboxylate from Step 1. The residue was purified by flash chromatography on a silica gel column eluting with 5% methanol in dichloromethane to afford the desired product (238 mg, 64% over 2 steps). LCMS calculated for C₁₃H₁₂BrClN₃OS (M+H)⁺: m/z=372.0; found 372.0.

Step 3: N-(2-chloro-2′-fluoro-3′-methoxybiphenyl-3-yl)-4, 5,6, 7-tetrahydro[1, 3]thiazolo[5, 4-c]pyridine-2-carboxamide

A mixture of N-(3-bromo-2-chlorophenyl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide (10.0 mg, 0.027 mmol), (2-fluoro-3-methoxyphenyl)boronic acid (5.02 mg, 0.030 mmol), K₃PO₄ (11 mg, 0.054 mmol) and tetrakis(triphenylphosphine)palladium(0) (3.1 mg, 0.0027 mmol) in 1,4-dioxane (0.15 mL) and water (10 μL) was stirred at 100° C. for 1 h. After being cooled to room temperature, the mixture was diluted with methanol, and purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₀H₁₈ClFN₃O₂S (M+H)⁺: m/z=418.1; found 418.2.

Example 33 N-(2-chlorobiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 32 with phenylboronic acid replacing (2-fluoro-3-methoxyphenyl)boronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₁₉H₁₇ClN₃OS (M+H)⁺: m/z=370.1; found 370.2.

Example 34 N-[2-chloro-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 32 with 2,3-dihydro-1,4-benzodioxin-6-ylboronic acid replacing (2-fluoro-3-methoxyphenyl)boronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₁₉ClN₃O₃S (M+H)⁺: m/z=428.1; found 428.2.

Example 35 N-(2-chloro-3-(1-methyl-1H-indazol-4-yl)phenyl)-4,5,6,7-tetrahydrothiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 32 with 1-methyl-1H-indazole-4-boronic acid (Combi-Blocks; cat#BB-9017) replacing (2-fluoro-3-methoxyphenyl)boronic acid in Step 3. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₁₉ClN₅OS (M+H)⁺: m/z=424.1; found 424.2.

Example 36 N-[3-(2,3-dihydro-1,4-benzodioxin-6-yl)-5-fluoro-2-methylphenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 20 with 3-bromo-5-fluoro-2-methylaniline (Ark Pharm, Cat#:AK-82467) replacing 3-bromo-2-methylaniline in Step 1. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₂H₂₁FN₃O₃S (M+H)⁺: m/z=426.1; found 426.2.

Example 37 N-[2-(2,3-dihydro-1,4-benzodioxin-6-yl)-3-methylpyridin-4-yl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 20 with 2-chloro-3-methylpyridin-4-amine (AstaTech, Cat#:25664) replacing 3-bromo-2-methylaniline in Step 1. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₂₁N₄O₃S (M+H)⁺: m/z=409.1; found 409.2.

Example 38 N-[5-(2,3-dihydro-1,4-benzodioxin-6-yl)-4-methylpyridin-3-yl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 20 with 5-bromo-4-methylpyridin-3-amine (AstaTech, Cat#: 36169) replacing 3-bromo-2-methylaniline in Step 1. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₁H₂₁N₄O₃S (M+H)⁺: m/z=409.1; found 409.2.

Example 39 N-(2-cyano-2′-fluoro-3′-methoxybiphenyl-3-yl)-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 12, Step 3 to 4, starting with 5-tert-butyl 2-methyl 1-methyl-6,7-dihydro-1H-imidazo[4,5-c]pyridine-2,5(4H)-dicarboxylate from Example 12, Step 2 and 3-amino-2′-fluoro-3′-methoxybiphenyl-2-carbonitrile, prepared using similar procedures for the synthesis of 2-amino-6-(2,3-dihydro-1,4-benzodioxin-6-yl)benzonitrile in Example 1, Step 1. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₂H₂₁FN₅O₂(M+H)⁺: m/z=406.2; found 406.2.

Example 40 N-(2-cyano-2′-fluoro-3′-methoxybiphenyl-3-yl)-5-(2-hydroxyethyl)-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 11, starting with N-(2-cyano-2′-fluoro-3′-methoxybiphenyl-3-yl)-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide from Example 39. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₄H₂₅FN₅O₃(M+H)⁺: m/z=450.2; found 450.2.

Example 41 (2-{[(2-cyano-2′-fluoro-3′-methoxybiphenyl-3-yl)amino]carbonyl}-1-methyl-1,4,6,7-tetrahydro-5H-imidazo[4,5-c]pyridin-5-yl)acetic acid

This compound was prepared using similar procedures as described for Example 28, starting with N-(2-cyano-2′-fluoro-3′-methoxybiphenyl-3-yl)-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide from Example 39. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₄H₂₃FN₅O₄(M+H)⁺: m/z=464.2; found 464.2.

Example 42 N-(2-cyano-3-(1-methyl-1H-indazol-4-yl)phenyl)-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide

This compound was prepared using similar procedures as described for Example 12, Step 3 to 4, starting with 5-tert-butyl 2-methyl 1-methyl-6,7-dihydro-1H-imidazo[4,5-c]pyridine-2,5(4H)-dicarboxylate from Example 12, Step 2 and 2-amino-6-(1-methyl-1H-indazol-4-yl)benzonitrile, prepared using similar procedures for the synthesis of 2-amino-6-(2,3-dihydro-1,4-benzodioxin-6-yl)benzonitrile in Example 1, Step 1. The reaction mixture was purified by prep-HPLC (pH=2, acetonitrile/water+TFA) to give the desired product as the TFA salt. LC-MS calculated for C₂₃H₂₂N₇O (M+H)⁺: m/z=412.2; found 412.2.

Example A. PD-1/PD-L1 Homogeneous Time-Resolved Fluorescence (HTRF) Binding Assay

The assays were conducted in a standard black 384-well polystyrene plate with a final volume of 20 μL. Inhibitors were first serially diluted in DMSO and then added to the plate wells before the addition of other reaction components. The final concentration of DMSO in the assay was 1%. The assays were carried out at 25° C. in the PBS buffer (pH 7.4) with 0.05% Tween-20 and 0.1% BSA. Recombinant human PD-L1 protein (19-238) with a His-tag at the C-terminus was purchased from AcroBiosystems (PD1-H5229). Recombinant human PD-1 protein (25-167) with Fc tag at the C-terminus was also purchased from AcroBiosystems (PD1-H5257). PD-L1 and PD-1 proteins were diluted in the assay buffer and 10 μL was added to the plate well. Plates were centrifuged and proteins were preincubated with inhibitors for 40 minutes. The incubation was followed by the addition of 10 μL of HTRF detection buffer supplemented with Europium cryptate-labeled anti-human IgG (PerkinElmer-AD0212) specific for Fc and anti-His antibody conjugated to SureLightR-Allophycocyanin (APC, PerkinElmer-AD0059H). After centrifugation, the plate was incubated at 25° C. for 60 min. before reading on a PHERAstar FS plate reader (665 nm/620 nm ratio). Final concentrations in the assay were—3 nM PD1, 10 nM PD-L1, 1 nM europium anti-human IgG and 20 nM anti-His-Allophycocyanin. IC₅₀ determination was performed by fitting the curve of percent control activity versus the log of the inhibitor concentration using the GraphPad Prism 5.0 software.

Compounds of the present disclosure, as exemplified in Examples 1-42, showed IC₅₀ values in the following ranges: +=IC₅₀≦100 nM; ++=100 nM<IC₅₀≦500 nM; +++=500 nM<IC₅₀≦10000 nM

Data obtained for the Example compounds using the PD-1/PD-L1 homogenous time-resolved fluorescence (HTRF) binding assay described in Example A is provided in Table 1.

TABLE 1 PD-1/PD-L1 HTRF Example IC₅₀ (nM) 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 ++ 9 + 10 ++ 11 ++ 12 + 13 + 14 +++ 15 ++ 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 +++ 25 + 26 + 27 + 28 + 29 ++ 30 ++ 31 +++ 32 + 33 + 34 + 35 + 36 + 37 +++ 38 +++ 39 + 40 + 41 ++ 42 ++

Various modifications of the invention, in addition to those described herein, will be apparent to those skilled in the art from the foregoing description. Such modifications are also intended to fall within the scope of the appended claims. Each reference, including without limitation all patent, patent applications, and publications, cited in the present application is incorporated herein by reference in its entirety. 

What is claimed is:
 1. A compound of Formula (I):

or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein: (i) G¹ is NR⁶ and G² is CR⁷R⁷; or (ii) G¹ is CR⁶R⁶ and G² is NR⁷; X¹ is N or CR¹; X² is N or CR²; X³ is N or CR³; Z is O, S, N, NR⁴ or CR⁴; Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N; Cy is C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents; R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₁₀ cycloalkyl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, C₆₋₁₀ aryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OR¹⁰, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, NH₂, —NHR¹⁰, —NR¹⁰R¹⁰, NHOR¹⁰, C(O)R¹⁰, C(O)NR¹⁰R¹⁰, C(O)OR¹⁰, OC(O)R¹⁰, OC(O)NR¹⁰R¹⁰, NR¹⁰C(O)R¹⁰, NR¹⁰C(O)OR¹⁰, NR¹⁰C(O)NR¹⁰R¹⁰, C(═NR¹⁰)R¹⁰, C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰S(O)R¹⁰, NR¹⁰S(O)₂R¹⁰, NR¹⁰S(O)₂NR¹⁰R¹⁰, S(O)R¹⁰, S(O)NR¹⁰R¹⁰, S(O)₂R¹⁰, and S(O)₂NR¹⁰R¹⁰, wherein each R¹⁰ is independently selected from H, C₁₋₄ alkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, C₁₋₄ alkoxy, C₃₋₁₀ cycloalkyl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, C₆₋₁₀ aryl, C₆₋₁₀ aryl-C₁₋₄ alkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₄ alkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, C₁₋₄ alkoxy, C₃₋₁₀ cycloalkyl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, C₆₋₁₀ aryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R¹, R², R³ and R¹⁰ are each optionally substituted with 1, 2 or 3 independently selected R^(d) substituents; R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR^(a), SR^(a), NHOR^(a), C(O)R^(a), C(O)NR^(a)R^(a), C(O)OR^(a), OC(O)R^(a), OC(O)NR^(a)R^(a), NHR^(a), NR^(a)R^(a), NR^(a)C(O)R^(a), NR^(a)C(O)OR^(a), NR^(a)C(O)NR^(a)R^(a), C(═NR^(a))R^(a), C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NOH)NR^(a)R^(a), NR^(a)C(═NCN)NR^(a)R^(a), NR^(a)S(O)R^(a), NR^(a)S(O)₂R^(a), NR^(a)S(O)₂NR^(a)R^(a), S(O)R^(a), S(O)NR^(a)R^(a), S(O)₂R^(a), and S(O)₂NR^(a)R^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1, 2, 3, 4 or 5 R^(b) substituents; or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents; or two R⁵ substituents attached to the same carbon atom, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl ring or 4-, 5-, 6- or 7-membered heterocycloalkyl ring, wherein the C₃₋₆ cycloalkyl ring and 4-, 5-, 6- or 7-membered heterocycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents; R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR¹¹, SR¹¹, NH₂, NHR¹¹, NR¹¹R¹¹, NHOR¹¹, C(O)R¹¹, C(O)NR¹¹R¹¹, C(O)OR¹¹, OC(O)R¹¹, OC(O)NR¹¹R¹¹, NR¹¹C(O)R¹¹, NR¹¹C(O)OR¹¹, NR¹¹C(O)NR¹¹R¹¹, C(═NR¹¹)R¹¹, C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NOH)NR¹¹R¹¹, NR¹¹C(═NCN)NR¹¹R¹¹, NR¹¹S(O)R¹¹, NR¹¹S(O)₂R¹¹, NR¹¹S(O)₂NR¹¹R¹¹, S(O)R¹¹, S(O)NR¹¹R¹¹, S(O)₂R¹¹, or S(O)₂NR¹¹R¹¹, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents; each R¹¹ is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R¹¹ are each optionally substituted with 1, 2 or 3 R^(b) substituents; each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(a) are each optionally substituted with 1, 2 or 3 R^(d) substituents; each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, OH, NH₂, NO₂, NHOR^(c), OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), OC(O)R^(c), OC(O)NR^(c)R^(c), C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NOH)NR^(c)R^(c), NR^(c)C(═NCN)NR^(c)R^(c), NHR^(c), NR^(c)R^(c), NR^(c)C(O)R^(c), NR^(c)C(O)OR^(c), NR^(c)C(O)NR^(c)R^(c), NR^(c)S(O)R^(c), NR^(c)S(O)₂R^(c), NR^(c)S(O)₂NR^(c)R^(c), S(O)R^(c), S(O)NR^(c)R^(c), S(O)₂R^(c) and S(O)₂NR^(c)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents; each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(c) are each optionally substituted with 1, 2 or 3 R^(f) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(g), OR^(g), SR^(g), C(O)R^(g), C(O)NR^(g)R^(g), C(O)OR^(g), OC(O)R^(g), OC(O)NR^(g)R^(g), NHR^(g), NR^(g)R^(g), NR^(g)C(O)R^(g), NR^(g)C(O)NR^(g)R^(g), NR^(g)C(O)OR^(g), C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NOH)NR^(g)R^(g), NR^(g)C(═NCN)NR^(g)R^(g), S(O)R^(g), S(O)NR^(g)R^(g), S(O)₂R^(g), NR^(g)S(O)₂R^(g), NR^(g)S(O)₂NR^(g)R^(g), and S(O)₂NR^(g)R^(g); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(f) are each optionally substituted with 1, 2 or 3 R^(n) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, NHOR^(o), OR^(o), SR^(o), C(O)R^(o), C(O)NR^(o)R^(o), C(O)OR^(o), OC(O)R^(o), OC(O)NR^(o)R^(o), NHR^(o), NR^(o)R^(o), NR^(o)C(O)R^(o), NR^(o)C(O)NR^(o)R^(o), NR^(o)C(O)OR^(o), C(═NR^(o))NR^(o)R^(o), NR^(o)C(═NR^(o))NR^(o)R^(o), S(O)R^(o), S(O)NR^(o)R^(o), S(O)₂R^(o), NR^(o)S(O)₂R^(o), NR^(o)S(O)₂NR^(o)R^(o), and S(O)₂NR^(o)R^(o), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, and 4-6 membered heterocycloalkyl of R^(n) is optionally substituted with 1, 2 or 3 R^(q) substituents; each R^(d) is independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NH₂, NHOR^(e), OR^(e), SR^(e), C(O)R^(e), C(O)NR^(e)R^(e), C(O)OR^(e), OC(O)R^(e), OC(O)NR^(e)R^(e), NHR^(e), NR^(e)R^(e), NR^(e)C(O)R^(e), NR^(e)C(O)NR^(e)R^(e), NR^(e)C(O)OR^(e), C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NOH)NR^(e)R^(e), NR^(e)C(═NCN)NR^(e)R^(e), S(O)R^(e), S(O)NR^(e)R^(e), S(O)₂R^(e), NR^(e)S(O)₂R^(e), NR^(e)S(O)₂NR^(e)R^(e), and S(O)₂NR^(e)R^(e), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(d) are each optionally substituted with 1-3 independently selected R^(f) substituents; each R^(e) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(e) are each optionally substituted with 1, 2 or 3 independently selected R^(f) substituents; each R^(g) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(g) are each optionally substituted with 1-3 R^(p) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃-10 cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(r), OR^(r), SR^(r), C(O)R^(r), C(O)NR^(r)R^(r), C(O)OR^(r), OC(O)R^(r), OC(O)NR^(r)R^(r), NHR^(r), NR^(r)R^(r), NR^(r)C(O)R^(r), NR^(r)C(O)NR^(r)R^(r), NR^(r)C(O)OR^(r), C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NOH)NR^(r)R^(r), NR^(r)C(═NCN)NR^(r)R^(r), S(O)R^(r), S(O)NR^(r)R^(r), S(O)₂R^(r), NR^(r)S(O)₂R^(r), NR^(r)S(O)₂NR^(r)R^(r) and S(O)₂NR^(r)R^(r), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(p) are each optionally substituted with 1, 2 or 3 R^(q) substituents; or any two R^(a) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, 7-, 8-, 9- or 10-membered heterocycloalkyl group optionally substituted with 1, 2 or 3 R^(h) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl-, C₁₋₆ haloalkoxy, C₂₋₆ alkenyl, C₂₋₆ alkynyl, halo, CN, OR^(i), SR^(i), NHOR^(i), C(O)R^(i), C(O)NR^(i)R^(i), C(O)OR^(i), OC(O)R^(i), OC(O)NR^(i)R^(i), NHR^(i), NR^(i)R^(i), NR^(i)(O)R^(i), NR^(i)C(O)NR^(i)R^(i), NR^(i)C(O)OR^(i), C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NOH)NR^(i)R^(i), NR^(i)C(═NCN)NR^(i)R^(i), S(O)R^(i), S(O)NR^(i)R^(i), S(O)₂R^(i), NR^(i)S(O)₂R^(i), NR^(i)S(O)₂NR^(i)R^(i), and S(O)₂NR^(i)R^(i), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(h) are each optionally substituted by 1, 2, or 3 R^(j) substituents independently selected from C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 5- or 6-membered heteroaryl, 4-6 membered heterocycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, C₁₋₄ haloalkyl, C₁₋₄haloalkoxy, CN, NHOR^(k), OR^(k), SR^(k), C(O)R^(k), C(O)NR^(k)R^(k), C(O)OR^(k), OC(O)R^(k), OC(O)NR^(k)R^(k), NHR^(k), NR^(k)R^(k), NR^(k)C(O)R^(k), NR^(k)C(O)NR^(k)R^(k), NR^(k)C(O)OR^(k), C(═NR^(k))NR^(k)R^(k), NR^(k)C(═NR^(k))NR^(k)R^(k), S(O)R^(k), S(O)NR^(k)R^(k), S(O)₂R^(k), NR^(k)S(O)₂R^(k), NR^(k)S(O)₂NR^(k)R^(k), and S(O)₂NR^(k)R^(k) wherein the C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 5- or 6-membered heteroaryl, 4-6 membered heterocycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, C₁₋₄ haloalkyl, and C₁₋₄haloalkoxy of R^(j) are each optionally substituted with 1, 2 or 3 R^(q) substituents; or two R^(h) groups attached to the same carbon atom of the 4- to 10-membered heterocycloalkyl, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl or 4- to 6-membered heterocycloalkyl having 1-2 heteroatoms as ring members selected from O, N or S; each R^(i) or R^(k) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-(5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(i) or R^(k) are each optionally substituted with 1-3 independently selected R^(p) substituents; or any two R^(c) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; or any two R^(e) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; or any two R^(g) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; or any two R^(i) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; or any two R^(k) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; or any two R^(o) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; or any two R^(r) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; each R^(o) or R^(r) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein the C₁₋₄ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl of R^(o) or R^(r) are each optionally substituted with 1, 2 or 3 R^(q) substituents; each R^(q) is independently selected from OH, CN, —COOH, NH₂, halo, C₁₋₆ haloalkyl, C₁₋₆ alkyl, C₁₋₆ alkoxy, C₁₋₆ haloalkoxy, C₁₋₆ alkylthio, phenyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, C₃₋₆ cycloalkyl, NHR¹² and NR¹²R¹², wherein the C₁₋₆ alkyl, phenyl, C₃₋₆ cycloalkyl, 4-6 membered heterocycloalkyl, and 5-6 membered heteroaryl of R^(q) are each optionally substituted with halo, OH, CN, —COOH, NH₂, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, phenyl, C₃₋₁₀ cycloalkyl, 5-6 membered heteroaryl and 4-6 membered heterocycloalkyl and each R¹² is independently C₁₋₆ alkyl;

is a single bond or a double bond to maintain ring A being aromatic; and the subscript n is an integer of 1, 2, 3 or
 4. 2. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein: (i) G¹ is NR⁶ and G² is CR⁷R⁷; or (ii) G¹ is CR⁶R⁶ and G² is NR⁷; X¹ is N or CR¹; X² is N or CR²; X³ is N or CR³; Z is O, S, N, NR⁴ or CR⁴; Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N; Cy is C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents; R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, NH₂, —NH—C₁₋₄ alkyl, —N(C₁₋₄ alkyl)₂, NHOR¹⁰, C(O)R¹⁰, C(O)NR¹⁰R¹⁰, C(O)OR¹⁰, OC(O)R¹⁰, OC(O)NR¹⁰R¹⁰, NR¹⁰C(O)R¹⁰, NR¹⁰C(O)OR¹⁰, NR¹⁰C(O)NR¹⁰R¹⁰, C(═NR¹⁰)R¹⁰, C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰C(═NR¹⁰)NR¹⁰R¹⁰, NR¹⁰S(O)R¹⁰, NR¹⁰S(O)₂R¹⁰, NR¹⁰S(O)₂NR¹⁰R¹⁰, S(O)R¹⁰, S(O)NR¹⁰R¹⁰, S(O)₂R¹⁰, and S(O)₂NR¹⁰R¹⁰, wherein each R¹⁰ is independently selected from H and C₁₋₄ alkyl optionally substituted with 1 or 2 groups independently selected from halo, OH, CN and C₁₋₄ alkoxy; and wherein the C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl and C₁₋₄ alkoxy of R¹, R² and R³ are each optionally substituted with 1 or 2 substituents independently selected from halo, OH, CN and C₁₋₄ alkoxy; R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR^(a), SR^(a), NHOR^(a), C(O)R^(a), C(O)NR^(a)R^(a), C(O)OR^(a), OC(O)R^(a), OC(O)NR^(a)R^(a), NHR^(a), NR^(a)R^(a), NR^(a)C(O)R^(a), NR^(a)C(O)OR^(a), NR^(a)C(O)NR^(a)R^(a), C(═NR^(a))R^(a), C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NR^(a))NR^(a)R^(a), NR^(a)C(═NOH)NR^(a)R^(a), NR^(a)C(═NCN)NR^(a)R^(a), NR^(a)S(O)R^(a), NR^(a)S(O)₂R^(a), NR^(a)S(O)₂NR^(a)R^(a), S(O)R^(a), S(O)NR^(a)R^(a), S(O)₂R^(a), and S(O)₂NR^(a)R^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1, 2, 3, 4 or 5 R^(b) substituents; or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents; or two R⁵ substituents attached to the same carbon atom, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl ring or 4-, 5-, 6- or 7-membered heterocycloalkyl ring, wherein the C₃₋₆ cycloalkyl ring and 4-, 5-, 6- or 7-membered heterocycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents; R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR¹¹, SR¹¹, NH₂, NHR¹¹, NR¹¹R¹¹, NHOR¹¹, C(O)R¹¹, C(O)NR¹¹R¹¹, C(O)OR¹¹, OC(O)R¹¹, OC(O)NR¹¹R¹¹, NR¹¹C(O)R¹¹, NR¹¹C(O)OR¹¹, NR¹¹C(O)NR¹¹R¹¹, C(═NR¹¹)R¹¹, C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NR¹¹)NR¹¹R¹¹, NR¹¹C(═NOH)NR¹¹R¹¹, NR¹¹C(═NCN)NR¹¹R¹¹, NR¹¹S(O)R¹¹, NR¹¹S(O)₂R¹¹, NR¹¹S(O)₂NR¹¹R¹¹, S(O)R¹¹, S(O)NR¹¹R¹¹, S(O)₂R¹¹, or S(O)₂NR¹¹R¹¹, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-14 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-14 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents; each R¹¹ is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R¹¹ are each optionally substituted with 1, 2 or 3 R^(b) substituents; each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(a) are each optionally substituted with 1, 2 or 3 R^(d) substituents; each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, OH, NH₂, NO₂, NHOR^(c), OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), OC(O)R^(c), OC(O)NR^(c)R^(c), C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NR^(c))NR^(c)R^(c), NR^(c)C(═NOH)NR^(c)R^(c), NR^(c)C(═NCN)NR^(c)R^(c), NHR^(c), NR^(c)R^(c), NR^(c)C(O)R^(c), NR^(c)C(O)OR^(c), NR^(c)C(O)NR^(c)R^(c), NR^(c)S(O)R^(c), NR^(c)S(O)₂R^(c), NR^(c)S(O)₂NR^(c)R^(c), S(O)R^(c), S(O)NR^(c)R^(c), S(O)₂R^(c) and S(O)₂NR^(c)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents; each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(c) are each optionally substituted with 1, 2 or 3 R^(f) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(g), OR^(g), SR^(g), C(O)R^(g), C(O)NR^(g)R^(g), C(O)OR^(g), OC(O)R^(g), OC(O)NR^(g)R^(g), NHR^(g), NR^(g)R^(g), NR^(g)C(O)R^(g), NR^(g)C(O)NR^(g)R^(g), NR^(g)C(O)OR^(g), C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NR^(g))NR^(g)R^(g), NR^(g)C(═NOH)NR^(g)R^(g), NR^(g)C(═NCN)NR^(g)R^(g), S(O)R^(g), S(O)NR^(g)R^(g), S(O)₂R^(g), NR^(g)S(O)₂R^(g), NR^(g)S(O)₂NR^(g)R^(g), and S(O)₂NR^(g)R^(g); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(f) are each optionally substituted with 1, 2 or 3 R^(n) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, NHOR^(o), OR^(o), SR^(o), C(O)R^(o), C(O)NR^(o)R^(o), C(O)OR^(o), OC(O)R^(o), OC(O)NR^(o)R^(o), NHR^(o), NR^(o)R^(o), NR^(o)C(O)R^(o), NR^(o)C(O)NR^(o)R^(o), NR^(o)C(O)OR^(o), C(═NR)NR^(o)R^(o), NR^(o)C(═NR^(o))NR^(o)R^(o), S(O)R^(o), S(O)NR^(o)R^(o), S(O)₂R^(o), NR^(o)S(O)₂R^(o), NR^(o)S(O)₂NR^(o)R^(o), and S(O)₂NR^(o)R^(o), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, phenyl, C₃₋₆ cycloalkyl, 5-6 membered heteroaryl, and 4-6 membered heterocycloalkyl- of R^(n) is optionally substituted with 1, 2 or 3 R^(q) substituents; each R^(d) is independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NH₂, NHOR^(e), OR^(e), SR^(e), C(O)R^(e), C(O)NR^(e)R^(e), C(O)OR^(e), OC(O)R^(e), OC(O)NR^(e)R^(e), NHR^(e), NR^(e)R^(e), NR^(e)C(O)R^(e), NR^(e)C(O)NR^(e)R^(e), NR^(e)C(O)OR^(e), C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NR^(e))NR^(e)R^(e), NR^(e)C(═NOH)NR^(e)R^(e), NR^(e)C(═NCN)NR^(e)R^(e), S(O)R^(e), S(O)NR^(e)R^(e), S(O)₂R^(e), NR^(e)S(O)₂R^(e), NR^(e)S(O)₂NR^(e)R^(e), and S(O)₂NR^(e)R^(e), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(d) are each optionally substituted with 1-3 independently selected R^(f) substituents; each R^(e) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(e) are each optionally substituted with 1, 2 or 3 independently selected R^(f) substituents; each R^(g) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(g) are each optionally substituted with 1-3 R^(p) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, halo, CN, NHOR^(r), OR^(r), SR^(r), C(O)R^(r), C(O)NR^(r)R^(r), C(O)OR^(r), OC(O)R^(r), OC(O)NR^(r)R^(r), NHR^(r), NR^(r)R^(r), NR^(r)C(O)R^(r), NR^(r)C(O)NR^(r)R^(r), NR^(r)C(O)OR^(r), C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NR^(r))NR^(r)R^(r), NR^(r)C(═NOH)NR^(r)R^(r), NR^(r)C(═NCN)NR^(r)R^(r), S(O)R^(r), S(O)NR^(r)R^(r), S(O)₂R^(r), NR^(r)S(O)₂R^(r), NR^(r)S(O)₂NR^(r)R^(r) and S(O)₂NR^(r)R^(r), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl- and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(p) is optionally substituted with 1, 2 or 3 R^(q) substituents; or any two R^(a) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, 7-, 8-, 9- or 10-membered heterocycloalkyl group optionally substituted with 1, 2 or 3 R^(h) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl-, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, halo, CN, OR^(i), SR^(i), NHOR^(i), C(O)R^(i), C(O)NR^(i)R^(i), C(O)OR^(i), OC(O)R^(i), OC(O)NR^(i)R^(i), NHR^(i), NR^(i)R^(i), NR^(i)C(O)R^(i), NR^(i)C(O)NR^(i)R^(i), NR^(i)C(O)OR^(i), C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NR^(i))NR^(i)R^(i), NR^(i)C(═NOH)NR^(i)R^(i), NR^(i)C(═NCN)NR^(i)R^(i), S(O)R^(i), S(O)NR^(i)R^(i), S(O)₂R^(i), NR^(i)S(O)₂R^(i), NR^(i)S(O)₂NR^(i)R^(i), and S(O)₂NR^(i)R^(i), wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₁₀ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl- of R^(h) are each optionally substituted by 1, 2, or 3 R^(j) substituents independently selected from C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 5- or 6-membered heteroaryl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, C₁₋₄ haloalkyl, C₁₋₄haloalkoxy, CN, NHOR^(k), OR^(k), SR^(k), C(O)R^(k), C(O)NR^(k)R^(k), C(O)OR^(k), OC(O)R^(k), OC(O)NR^(k)R^(k), NHR^(k), NR^(k)R^(k), NR^(k)C(O)R^(k), NR^(k)C(O)NR^(k)R^(k), NR^(k)C(O)OR^(k), C(═NR^(k))NR^(k)R^(k), NR^(k)C(═NR^(k))NR^(k)R^(k), S(O)R^(k), S(O)NR^(k)R^(k), S(O)₂R^(k), NR^(k)S(O)₂R^(k), NR^(k)S(O)₂NR^(k)R^(k), and S(O)₂NR^(k)R^(k); or two R^(h) groups attached to the same carbon atom of the 4- to 10-membered heterocycloalkyl, taken together with the carbon atom to which they are attached, form a C₃₋₆ cycloalkyl or 4- to 6-membered heterocycloalkyl having 1-2 heteroatoms as ring members selected from O, N or S; or any two R^(c) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; or any two R^(e) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; or any two R^(g) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; or any two R^(i) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; or any two R^(k) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; or any two R^(o) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; or any two R^(r) substituents together with the nitrogen atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 independently selected R^(h) substituents; each R^(i), R^(k), R^(o) or R^(r) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein the C₁₋₄ alkyl, C₁₋₆ haloalkyl, C₃₋₆ cycloalkyl, C₆₋₁₀ aryl, 4-6 membered heterocycloalkyl, 5 or 6-membered heteroaryl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl of R^(i), R^(k), R^(o) or R^(r) are each optionally substituted with 1, 2 or 3 R^(q) substituents; each R^(q) is independently selected from OH, CN, —COOH, NH₂, halo, C₁₋₆ haloalkyl, C₁₋₆ alkyl, C₁₋₆ alkoxy, C₁₋₆ haloalkoxy, C₁₋₆ alkylthio, phenyl, 5-6 membered heteroaryl, 4-6 membered heterocycloalkyl, C₃₋₆ cycloalkyl, NHR¹² and NR¹²R¹², wherein the C₁₋₆ alkyl, phenyl, C₃₋₆ cycloalkyl, 4-6 membered heterocycloalkyl, and 5-6 membered heteroaryl of R^(q) are each optionally substituted with halo, OH, CN, —COOH, NH₂, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, phenyl, C₃₋₁₀ cycloalkyl and 4-6 membered heterocycloalkyl and each R¹² is independently C₁₋₆ alkyl;

is a single bond or a double bond to maintain ring A being aromatic; and the subscript n is an integer of 1, 2, 3 or
 4. 3. The compound of claim 1, having Formula (II):

or a pharmaceutically acceptable salt or a stereoisomer thereof.
 4. The compound of claim 1, having Formula (III):

or a pharmaceutically acceptable salt or a stereoisomer thereof.
 5. The compound of claim 1, having Formula (IV):

or a pharmaceutically acceptable salt or a stereoisomer thereof.
 6. The compound of claim 1, having Formula (V):

or a pharmaceutically acceptable salt or a stereoisomer thereof.
 7. The compound of claim 1, having Formula (VI):

or a pharmaceutically acceptable salt or a stereoisomer thereof.
 8. The compound of claim 1, having Formula (VII):

or a pharmaceutically acceptable salt or a stereoisomer thereof.
 9. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, or C₁₋₄ haloalkoxy.
 10. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein R¹ is H, R² is H or halo, and R³ is H.
 11. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein Cy is phenyl, 5- or 6-membered heteroaryl, C₃₋₆ cycloalkyl or 5- or 6-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents; or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents.
 12. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein Cy is phenyl, 2-thiophenyl, 3-thiophenyl, 2-pyridyl, 3-pyridyl, 4-pyridyl, 3,6-dihydro-2H-pyran-4-yl, cyclohexyl, cyclohexenyl, 2,3-dihydro-1,4-benzodioxin-6-yl, 1,3-benzodioxin-5-yl, 2-methylindazol-6-yl or 1-methylindazol-4-yl, each of which is optionally substituted with 1 to 5 R⁸ substituents.
 13. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, and NH₂.
 14. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein R⁹ is halo, C₁₋₆ alkyl, or CN.
 15. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein R⁹ is CH₃, CN or halo.
 16. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein Z is S, CR⁴, NR⁴, or N and R⁴ is independently H or C₁₋₆ alkyl.
 17. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein Z is S, CH, NCH₃ or N.
 18. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein Y¹ is C or N and Y² is C.
 19. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein Y¹ is C and Y² is N.
 20. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein the moiety:

is selected from:


21. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein (i) Y¹ is N, Y² is C and Z is N; (ii) Y¹ is N, Y² is C and Z is CR⁴; (iii) Y¹ is C, Y² is N and Z is N; (iv) Y¹ is C, Y² is N and Z is CR⁴; (v) Y¹ is C, Y² is C and Z is S; or (vi) Y¹ is C, Y² is C and Z is O.
 22. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein R⁵ is H.
 23. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein G¹ is NR⁶ and G² is CR⁷R⁷.
 24. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein G¹ is CR⁶R⁶ and G² is NR⁷.
 25. The compound of claim 23, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein R⁶ is H or C₁₋₆ alkyl optionally substituted with 1, 2 or 3 R^(b) substituents.
 26. The compound of claim 23, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein R⁷ is H or C₁₋₆ alkyl optionally substituted with 1, 2 or 3 R^(b) substituents.
 27. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, OH, NH₂, OR^(c), C(O)R^(c), C(O)NR^(c)R^(c), and C(O)OR.
 28. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein each R^(b) substituent is independently selected from C₁₋₆ alkyl, CN, OH, and C(O)OR^(c).
 29. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein: (i) G¹ is NR⁶ and G² is CR⁷R⁷; or (ii) G¹ is CR⁶R⁶ and G² is NR⁷; X¹ is N or CR¹; X² is N or CR²; X³ is N or CR³; Z is O, S, N, NR⁴ or CR⁴; Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N; Cy is C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents; R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, NH₂, —NH—C₁₋₄ alkyl, —N(C₁₋₄ alkyl)₂, C(O)R¹⁰, C(O)NR¹⁰R¹⁰, C(O)OR¹⁰, OC(O)R¹⁰, OC(O)NR¹⁰R¹⁰, NR¹⁰C(O)R¹⁰, NR¹⁰C(O)OR¹⁰, NR¹⁰S(O)R¹⁰, NR¹⁰S(O)₂R¹⁰, NR¹⁰S(O)₂NR¹⁰R¹⁰, S(O)R¹⁰, S(O)NR¹⁰R¹⁰, S(O)₂R¹⁰, and S(O)₂NR¹⁰R¹⁰, wherein each R¹⁰ is independently selected from H and C₁₋₄ alkyl optionally substituted with 1 or 2 groups independently selected from halo, OH, CN and C₁₋₄ alkoxy; and wherein the C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl and C₁₋₄ alkoxy of R¹, R² and R³ are each optionally substituted with 1 or 2 substituents independently selected from halo, OH, CN and C₁₋₄ alkoxy; R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, OR^(a), SR^(a), C(O)R^(a), C(O)NR^(a)R^(a), C(O)OR^(a), OC(O)R^(a), OC(O)NR^(a)R^(a), NHR^(a), NR^(a)R^(a), NR^(a)C(O)R^(a), NR^(a)C(O)OR^(a), NR^(a)S(O)R^(a), NR^(a)S(O)₂R^(a), NR^(a)S(O)₂NR^(a)R^(a), S(O)R^(a), S(O)NR^(a)R^(a), S(O)₂R^(a), and S(O)₂NR^(a)R^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1, 2, 3, 4 or 5 R^(b) substituents; or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents; R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, OR¹¹, SR¹¹, NH₂, NHR¹¹, NR¹¹R¹¹, NHOR¹¹, C(O)R¹¹, C(O)NR¹¹R¹¹, C(O)OR¹¹, OC(O)R¹¹, OC(O)NR¹¹R¹¹, NR¹¹C(O)R¹¹, NR¹¹C(O)OR¹¹, NR¹¹C(O)NR¹¹R¹¹, NR¹¹S(O)R¹¹, NR¹¹S(O)₂R¹¹, NR¹¹S(O)₂NR¹¹R¹¹, S(O)R¹¹, S(O)NR¹¹R¹¹, S(O)₂R¹¹, or S(O)₂NR¹¹R¹¹, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, and C₁₋₆ haloalkoxy of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents; each R¹¹ is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl; each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl; each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, OH, NH₂, NO₂, NHOR^(c), OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), OC(O)R^(c), OC(O)NR^(c)R^(c), NHR^(c), NR^(c)R^(c), NR^(c)C(O)R^(c), NR^(c)C(O)OR^(c), NR^(c)C(O)NR^(c)R^(c), NR^(c)S(O)R^(c), NR^(c)S(O)₂R^(c), NR^(c)S(O)₂NR^(c)R^(c), S(O)R^(c), S(O)NR^(c)R^(c), S(O)₂R^(c) and S(O)₂NR^(c)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, and C₁₋₆ haloalkoxy of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents; each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl of R^(c) are each optionally substituted with 1, 2 or 3 R^(f) substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, halo, CN, OR^(g), SR^(g), C(O)R^(g), C(O)NR^(g)R^(g), C(O)OR^(g), OC(O)R^(g), OC(O)NR^(g)R^(g), NHR^(g), NR^(g)R^(g), NR^(g)C(O)R^(g), NR^(g)C(O)NR^(g)R^(g), NR^(g)C(O)OR^(g), S(O)R^(g), S(O)NR^(g)R^(g), S(O)₂R^(g), NR^(g)S(O)₂R^(g), NR^(g)S(O)₂NR^(g)R^(g), and S(O)₂NR^(g)R^(g); each R^(d) is independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, NH₂, OR^(e), SR^(e), C(O)R^(e), C(O)NR^(e)R^(e), C(O)OR^(e), OC(O)R^(e), OC(O)NR^(e)R^(e), NHR^(e), NR^(e)R^(e), NR^(e)C(O)R^(e), NR^(e)C(O)NR^(e)R^(e), NR^(e)C(O)OR^(e), S(O)R^(e), S(O)NR^(e)R^(e), S(O)₂R^(e), NR^(e)S(O)₂R^(e), NR^(e)S(O)₂NR^(e)R^(e), and S(O)₂NR^(e)R^(e); each R^(e) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-; each R^(g) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-;

is a single bond or a double bond to maintain ring A being aromatic; and the subscript n is an integer of 1, 2, 3 or
 4. 30. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein: (i) G¹ is NR⁶ and G² is CR⁷R⁷; or (ii) G¹ is CR⁶R⁶ and G² is NR⁷; X¹ is N or CR¹; X² is N or CR²; X³ is N or CR³; Z is S, N, NR⁴ or CR⁴; Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N; Cy is C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents; R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₃₋₆ cycloalkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, C₁₋₄ haloalkoxy, NH₂, —NH—C₁₋₄ alkyl, and —N(C₁₋₄ alkyl)₂; R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, OR^(a), SR^(a), C(O)R^(a), C(O)NR^(a)R^(a), and C(O)OR^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1, 2, 3, 4 or 5 R^(b) substituents; or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused phenyl ring, a fused 5-, 6- or 7-membered heterocycloalkyl ring, a fused 5- or 6-membered heteroaryl ring or a fused C₃₋₆ cycloalkyl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused phenyl ring, fused 5-, 6- or 7-membered heterocycloalkyl ring, fused 5- or 6-membered heteroaryl ring and fused C₃₋₆ cycloalkyl ring are each optionally substituted with 1, 2 or 3 independently selected R^(b) substituents; R⁹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, or NH₂, wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, and C₁₋₆ haloalkoxy of R⁹ are each optionally substituted with 1, 2 or 3 R^(b) substituents; each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl; each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, OH, NH₂, NO₂, OR^(c), SR^(c), C(O)R^(c), C(O)NR^(c)R^(c), C(O)OR^(c), NHR^(c), NR^(c)R^(c), and NR^(c)C(O)R^(c); wherein the C₁₋₆ alkyl, C₁₋₆ haloalkyl, and C₁₋₆ haloalkoxy of R^(b) are each further optionally substituted with 1-3 independently selected R^(d) substituents; each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl; each R^(d) is independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, NH₂, OR^(e), SR^(e), C(O)R^(e), C(O)NR^(e)R^(e), C(O)OR^(e), NHR^(e), NR^(e)R^(e), and NR^(e)C(O)R^(e); each R^(e) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl;

is a single bond or a double bond to maintain ring A being aromatic; and the subscript n is an integer of 1 or
 2. 31. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein: (i) G¹ is NR⁶ and G² is CR⁷R⁷; or (ii) G¹ is CR⁶R⁶ and G² is NR⁷; X¹ is N or CR¹; X² is N or CR²; X³ is N or CR³; Z is S, N, NR⁴ or CR⁴; Y¹ and Y² are each independently N or C, provided Y¹ and Y² are not simultaneously N; Cy is phenyl, C₃₋₁₀ cycloalkyl, 5- to 14-membered heteroaryl, or 4- to 10-membered heterocycloalkyl, each of which is optionally substituted with 1 to 5 independently selected R⁸ substituents; R¹, R² and R³ are each independently selected from H, C₁₋₄ alkyl, C₂₋₄ alkenyl, C₂₋₄ alkynyl, halo, CN, OH, C₁₋₄ alkoxy, C₁₋₄ haloalkyl, or C₁₋₄ haloalkoxy; R⁴, R⁵, R⁶, R⁷ and R⁸ are each independently selected from H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, NO₂, OR^(a), and C(O)OR^(a), wherein the C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl of R⁴, R⁵, R⁶, R⁷ and R⁸ are each optionally substituted with 1 or 2 R^(b) substituents; or two adjacent R⁸ substituents on the Cy ring, taken together with the atoms to which they are attached, form a fused 5-, 6- or 7-membered heterocycloalkyl ring, or a fused 5- or 6-membered heteroaryl ring, wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring each have 1-4 heteroatoms as ring members selected from N, O and S and wherein the fused 5-, 6- or 7-membered heterocycloalkyl ring and fused 5- or 6-membered heteroaryl ring are each optionally substituted with 1 or 2 independently selected R^(b) substituents; R⁹ is halo, C₁₋₆ alkyl, or CN; each R^(a) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl; each R^(b) substituent is independently selected from halo, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₁₋₆ haloalkoxy, CN, OH, NH₂, OR^(c), C(O)R^(c), C(O)NR^(c)R^(c), and C(O)OR^(c); each R^(c) is independently selected from H, C₁₋₆ alkyl, C₁₋₆ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl;

is a single bond or a double bond to maintain ring A being aromatic; and the subscript n is an integer of 1 or
 2. 32. The compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, wherein the compound is selected from: N-[2-cyano-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-cyanobiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-[2-cyano-3-(1-methyl-1H-indazol-4-yl)phenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-cyano-2′-fluorobiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-cyano-2′-fluoro-3′-methoxybiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-[2-cyano-3-(2,3-dihydro-1-benzofuran-6-yl)phenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-cyano-3-cyclohex-1-en-1-ylphenyl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-cyano-3-cyclohexylphenyl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-cyano-2′,6′-difluorobiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-[2-cyano-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-4,5,6,7-tetrahydropyrazolo[1,5-a]pyrazine-2-carboxamide; N-[2-cyano-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-5-(2-hydroxyethyl)-4,5,6,7-tetrahydropyrazolo[1,5-a]pyrazine-2-carboxamide; N-[2-cyano-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide; N-(2-cyano-3-(2,3-dihydrobenzo[b][1,4]dioxin-6-yl)phenyl)-5-(2-hydroxyethyl)-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide; N-[2-cyano-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-5,6,7,8-tetrahydro[1,2,4]triazolo[1,5-a]pyrazine-2-carboxamide; N-(2,3′-dicyano-2′-fluorobiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-cyano-3′-methoxybiphenyl-3-yl)-4,5,6,7-tetrahydrothiazolo[5,4-c]pyridine-2-carboxamide; N-(2-cyano-3′-fluoro-5′-methoxybiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2′-chloro-2-cyanobiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-cyano-2′-fluoro-3′-methoxybiphenyl-3-yl)-5,6,7,8-tetrahydroimidazo[1,2-a]pyrazine-2-carboxamide; N-[3-(2,3-dihydro-1,4-benzodioxin-6-yl)-2-methylphenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2′-fluoro-3′-methoxy-2-methylbiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2′-fluoro-3′-methoxy-2-methylbiphenyl-3-yl)-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide; N-[2-methyl-3-(1-methyl-1H-indazol-4-yl)phenyl]-4,5,6, 7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-[2′-fluoro-3′-(hydroxymethyl)-2-methylbiphenyl-3-yl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-[3-(1H-indazol-4-yl)-2-methylphenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-methylbiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; 5-(2-hydroxyethyl)-N-(2-methylbiphenyl-3-yl)-4, 5,6,7-tetrahydrothiazolo[5,4-c]pyridine-2-carboxamide; 2-(2-(2-methylbiphenyl-3-ylcarbamoyl)-6,7-dihydrothiazolo[5,4-c]pyridin-5 (4H)-yl)acetic acid; N-[2-methyl-3-(2-methyl-2H-indazol-6-yl)phenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2′-cyano-2-methylbiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-[2′-(cyanomethyl)-2-methylbiphenyl-3-yl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-chloro-2′-fluoro-3′-methoxybiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-chlorobiphenyl-3-yl)-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-[2-chloro-3-(2,3-dihydro-1,4-benzodioxin-6-yl)phenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-chloro-3-(1-methyl-1H-indazol-4-yl)phenyl)-4,5,6,7-tetrahydrothiazolo[5,4-c]pyridine-2-carboxamide; N-[3-(2,3-dihydro-1,4-benzodioxin-6-yl)-5-fluoro-2-methylphenyl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-[2-(2,3-dihydro-1,4-benzodioxin-6-yl)-3-methylpyridin-4-yl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-[5-(2,3-dihydro-1,4-benzodioxin-6-yl)-4-methylpyridin-3-yl]-4,5,6,7-tetrahydro[1,3]thiazolo[5,4-c]pyridine-2-carboxamide; N-(2-cyano-2′-fluoro-3′-methoxybiphenyl-3-yl)-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide; N-(2-cyano-2′-fluoro-3′-methoxybiphenyl-3-yl)-5-(2-hydroxyethyl)-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide; (2-{[(2-cyano-2′-fluoro-3′-methoxybiphenyl-3-yl)amino]carbonyl}-1-methyl-1,4,6,7-tetrahydro-5H-imidazo[4,5-c]pyridin-5-yl)acetic acid; and N-(2-cyano-3-(1-methyl-1H-indazol-4-yl)phenyl)-1-methyl-4,5,6,7-tetrahydro-1H-imidazo[4,5-c]pyridine-2-carboxamide.
 33. A pharmaceutical composition comprising a compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof, and at least one pharmaceutically acceptable carrier or excipient.
 34. A method of inhibiting PD-1/PD-L1 interaction, said method comprising administering to a patient a compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof.
 35. A method of treating a disease or disorder associated with inhibition of PD-1/PD-L1 interaction, said method comprising administering to a patient in need thereof a therapeutically effective amount of a compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof.
 36. A method of enhancing, stimulating and/or increasing the immune response in a patient, said method comprising administering to the patient in need thereof a therapeutically effective amount of a compound of claim 1, or a pharmaceutically acceptable salt or a stereoisomer thereof. 